# Event-based rendering

**URL:** <https://discourse.glfw.org/t/event-based-rendering/742>\
**Category:** support\
**Created:** [August 31, 2016, 7:39pm UTC](https://discourse.glfw.org/t/event-based-rendering/742 "2016-08-31T19:39:33Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sgtpepper](https://avatars.discourse-cdn.com/v4/letter/s/edb3f5/32.png) [@sgtpepper](https://discourse.glfw.org/u/sgtpepper)\
**Post date:** [August 31, 2016, 7:39pm UTC](https://discourse.glfw.org/t/event-based-rendering/742/1 "2016-08-31T19:39:33Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![elmindreda](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/elmindreda/32/26_2.png) [@elmindreda](https://discourse.glfw.org/u/elmindreda)\
**Post date:** [August 31, 2016, 7:42pm UTC](https://discourse.glfw.org/t/event-based-rendering/742/2 "2016-08-31T19:42:32Z")

</div>

You absolutely can. This is what [glfwWaitEvents](http://www.glfw.org/docs/latest/input_guide.html#events) is for. You should still have a loop, though.
