PDA

View Full Version : Multi-threaded rendering advice



jcox23
5th November 2012, 12:25
After using QGLWidget for quite a while in one of my app, I'd like to move away from OpenGL...
Instead I plan to use displays with asynchronous rendering and possibly making use of multi-threading (roughly based on the mandelbrot example...)
Is there any library out there doing that?
Failing that I'll try to roll my own.

Main display class will spool a render thread that is in charge of painting a QImage, passed along to the main class when finished.
In the render thread, several thread will each compute a layer of the "final" QImage...
Final QImage is the composition of the QImage layers...
Lots of overhead for very small rendering I guess.
Is this plan sound? any advices regarding this?

Thanks in advance!