• Advertisement
Sign in to follow this  

glfwPollEvents on It's own Thread?

This topic is 1322 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hello,

 

Not sure if this is a silly question or not but has anyone tried putting a function wrapper around glfwPollEvents() in it's own thread via an std::thread or similar?

 

Just curious if it can be done and what experience people may have had with that.

 

Thank you for your time.

Share this post


Link to post
Share on other sites
Advertisement

I don't know about other platforms, but on Windows, that call has to be in the same thread that created the window.

 

I see, makes sense. Was just trying to speed up and offload polling of the keyboard/mouse.

Share this post


Link to post
Share on other sites
Wrong direction. It’s not the input that gets shoved off to another thread, it’s the game loop that gets the shove.


L. Spiro

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement