[Bf-python] Cython, cycles and makesrna

Doug Hammond doug.hammond at luxrender.net
Mon May 16 18:13:36 CEST 2011


This sounds like it might be very useful for speeding up things like
geometry processing for exporter addons - is it possible you could provide
some more information about cython in blender for people who have never
seen/used cython before ?

Cheers,
Doug.

On Mon, May 16, 2011 at 5:08 PM, Dan Eicher <dan at trollwerks.org> wrote:

> On Mon, May 16, 2011 at 1:36 AM, Brecht Van Lommel
> <brechtvanlommel at pandora.be> wrote:
> > Hi,
> >
> > I'm not familiar with Cython, but it could be indeed be useful to
> > addon developers. I guess from the Blender side this doesn't need much
> > work, seems this can wrap any header file?
> >
> Yeah, I did my first blender/cython test by converting my pie menu
> script to use 'direct' opengl calls instead of bgl for a nice speed
> boost. It can even mix python and c calls in the same function and
> compile/run it with no problems.
>
> After playing with it a bit more it would probably be sufficient to
> just wrap RNA_blender.h -- and perhaps generate a cython wrapper like
> the RNA_blender_cpp.h one (even though this would kind of directly
> compete with bpy) that other cython modules could just cimport without
> having to go through the C-py-C conversions.
>
> The only real changes to blender's code base are for
> generating/writing the wrapper files.
>
> Dan
> _______________________________________________
> Bf-python mailing list
> Bf-python at blender.org
> http://lists.blender.org/mailman/listinfo/bf-python
>



-- 
Doug Hammond (dougal2),
Developer and Admin for LuxRender
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20110516/d0d9ba7d/attachment.html>


More information about the Bf-python mailing list