[cl-opengl-devel] Patch for faster texture uploads
Bart Botta
00003b at gmail.com
Sun Oct 7 04:29:33 UTC 2007
gl:tex-image-2d seems a bit slow (~23 sec for a 1k by 1k texture on
SBCL 1.0.2 win32), attached patch speeds it up ~100x (to ~0.25 sec).
Problem was that the element type in with-opengl-array wasn't constant
(since it had been passed as a parameter to tex-image-2d) so cffi
couldn't optimize for a specific type. Patch moves the type check out
of the copy loop, and duplicates the loop for each type, so each case
can be optimized individually.
--
Bart
-------------- next part --------------
A non-text attachment was scrubbed...
Name: with-opengl-array.patch
Type: application/octet-stream
Size: 13824 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/cl-opengl-devel/attachments/20071006/021b7b43/attachment.obj>
More information about the cl-opengl-devel
mailing list