Frame skipping with OpenGL and WinAPI?

Posted by user146780 on Stack Overflow See other posts from Stack Overflow or by user146780
Published on 2010-06-05T14:55:58Z Indexed on 2010/06/05 15:02 UTC
Read the original article Hit count: 254

Filed under:
|
|
|

Here is my situation. I'm creating a drawing application using OpenGL and WinAPI. My OpenGL frame has scrollbars which renders the screen and modifies GlTranslatef when it gets a scroll message. The problem is wen I get too many shapes the scrollbar is less responsive since it cannot rerender it each and every time it gets a scroll message. How could I make it so the scrollbar has priority. I want it to skip drawing if it would compromise the smoothness of the scrolling. I thought of doing rendering on a separate thread but I was told all UI things should stay on the same thread. Thanks

© Stack Overflow or respective owner

Related posts about c++

Related posts about c