Skip to main content
gamedev.net
🔒 Locked

Clear OpenGL command stack

Started by TuLKaS 0 replies 350+ views
Original Post
TuLKaS
TuLKaS
Hi all, I'm rendering the geometry in a low mode, but when the user stops I switch the render mode to high (this render can last 15 seconds per frame). If the user moves during the render, I want to cancel the render of the current frame (clearing all the geometry send to OpenGL) and continue the render in low mode (without waiting for the current frame being rendered). Any idea? (I'm trying to improve my english :P)
Brother Bob
Brother Bob
Nothing OpenGL can help you with. You just have to stop feeding stuff to OpenGL. For example, you could draw the scene is small parts, and check for user inputs or whatever between parts. If something changed, stop drawing. However, what you already sent will be drawn.

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.