Event-based rendering

Hello members!

I have a question regarding the rendering loop.
Is there a way to keep the window open, while not having the render loop?
I’ld like to render it in an event-based manner. So if sth. happens (event)
the window shall render, otherwise it shouldn’t.
I would like to save performance this way, so 0 fps are completely acceptable.

Thanks for your help :slight_smile:

You absolutely can. This is what glfwWaitEvents is for. You should still have a loop, though.