Le Sat, 07 Apr 2012 12:42:28 +0200, Stefano Ceccherini <stefano.ceccherini@xxxxxxxxx> a écrit:
I'm not familiar enough with OpenGL to see if there are issues related with exposing a BBitmap buffer from the addon, though (in case there are situations where you don't render into a backbuffer, I dunno). Obviously, this is not really a direct mode, since we still render into a back buffer, but it's what we are doing right now, anyway. I've still a small issue with FrameResized, but I think I can fix it. What do you think about these changes ? Shall I go ahead and work on it?
The idea is that OpenGL should be accelerated, in that case all the drawing should occur on the graphics hardware side. It may even be done without rendering to any kind of buffer at all. Of course, with software rendering this doesn't apply, and things get messy. But, without direct mode, real 3D acceleration will not be possible, or with huge performance hits.
The non-direct mode is there for apps that want to render something off screen, either writing to a file (non-realtime), or doing some post processing before display. It is a valid use, but has a performance cost.
-- Adrien.