[Qt-interest] opengl thread
bert.ddecker
bert.ddecker at gmail.com
Wed Jan 20 12:17:36 CET 2010
Thanks a lot for your answer, it was very useful !
Too bad qt doesn't allow me to have a seperate rendering thread and gui
thread, than I wouldn't have to make sure all my events were handled in a
very short amount of time.
But I guess most of my events are handled in a very short amount of time
anyway.
<Oliver.Knoll at comit.ch> wrote in message
news:C10F29AB06447B4881FC0DE1E302E2F204596E43BC at sg000036.corproot.net...
> bert.ddecker wrote on Monday, January 18, 2010 11:28 PM:
>
>> I would like to make an application with two threads. One that
>> handles my main event loop and one that renders using opengl.
>> It is important that I render at a constant rate of 30 hertz, and by
>> keeping my event loop and my rendering loop in a seperate threads,
>> the rendering framerate will not drop when a lot of events are
>
>>From http://doc.trolltech.com/4.6/threads-mandelbrot.html: "The Mandelbrot
>>example shows how to use a worker thread to perform heavy computations
>>without blocking the main thread's event loop."
>
> This might be interesting for you.... ;)
>
> Cheers, Oliver
> --
> Oliver Knoll
> Dipl. Informatik-Ing. ETH
> COMIT AG - ++41 79 520 95 22
More information about the Qt-interest-old
mailing list