glfwPollEvents on It's own Thread?

Started by
2 comments, last by L. Spiro 9 years, 10 months ago

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.

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 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.

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

I restore Nintendo 64 video-game OST’s into HD! https://www.youtube.com/channel/UCCtX_wedtZ5BoyQBXEhnVZw/playlists?view=1&sort=lad&flow=grid

This topic is closed to new replies.

Advertisement