[Bf-python] Fastest way for RenderEngine to return combined rgba + z

Dan Eicher dan at eu.phorio.us
Tue Aug 20 00:24:49 CEST 2013


Hello,

In py-3.2 or 3.3 they added full support for buffer objects so unless
there's some conversion that needs to be done it should be able to take a
pure buffer object and do a simple memcpy -- which I'd imagine would be a
lot faster than 800ms. The Py_buffer struct should be able to supply all
the information that the current sequence methods currently provide.

As an added plus you could define it as negative strides indexing and do
away with the bottom to top conversion as well.

Dan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.blender.org/pipermail/bf-python/attachments/20130819/14ccddbf/attachment.html>


More information about the Bf-python mailing list