# Question about glfwPollEvents()

**URL:** <https://discourse.glfw.org/t/question-about-glfwpollevents/1524>\
**Category:** support\
**Created:** [April 3, 2020, 11:55am UTC](https://discourse.glfw.org/t/question-about-glfwpollevents/1524 "2020-04-03T11:55:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![suicune](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@suicune](https://discourse.glfw.org/u/suicune)\
**Post date:** [April 3, 2020, 11:55am UTC](https://discourse.glfw.org/t/question-about-glfwpollevents/1524/1 "2020-04-03T11:55:07Z")

</div>

So it seems most often people place glfwPollEvents() inside the render loop. Doesn’t this mean that events such as keyboards presses and mouse clicks will only get handled as often as the frame is updated? Meaning events will be processed slower if running on a monitor with lower framerate. Am I misunderstanding what glfwPollEvents() does? It doesn’t seem possible to put glfwPollEvents() in a different, faster running thread. Is there any way around this?

---

<div class="post-metadata">

**Author:** ![dougbinks](https://yyz1.discourse-cdn.com/flex035/user_avatar/discourse.glfw.org/dougbinks/32/39_2.png) [@dougbinks](https://discourse.glfw.org/u/dougbinks)\
**Post date:** [April 3, 2020, 12:17pm UTC](https://discourse.glfw.org/t/question-about-glfwpollevents/1524/2 "2020-04-03T12:17:15Z")

</div>

If you want to call [glfwPollEvents()](https://www.glfw.org/docs/3.3/group__window.html#ga37bd57223967b4211d60ca1a0bf3c832) more frequently than you update your rendering then the usual approach is to move the rendering to another thread, and use [glfwMakeContextCurrent](https://www.glfw.org/docs/3.3/group__context.html#ga1c04dc242268f827290fe40aa1c91157) on that thread (if using OpenGL).

You can find a bit more information in posts here if you search for multithreading, including [this one](https://discourse.glfw.org/t/multithreading-glfw/573) where @elmindreda explains the OS requirements for why glfwPollEvents must be called from the main thread.

---

<div class="post-metadata">

**Author:** ![suicune](https://avatars.discourse-cdn.com/v4/letter/s/87869e/32.png) [@suicune](https://discourse.glfw.org/u/suicune)\
**Post date:** [April 3, 2020, 5:41pm UTC](https://discourse.glfw.org/t/question-about-glfwpollevents/1524/3 "2020-04-03T17:41:03Z")

</div>

That works, Thanks!  
Also rendering now continues while dragging or resizing the window which is something else I was looking for.
