Jump to content

View more

Image of the Day

Inventory ! Va falloir trouver une autre couleur pour le cadre D: #AzTroScreenshot #screenshotsaturday https://t.co/PvxhGL7cOH
IOTD | Top Screenshots

The latest, straight to your Inbox.

Subscribe to GameDev.net Direct to receive the latest updates and exclusive content.


Sign up now

glfwPollEvents on It's own Thread?

4: Adsense

Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.


  • You cannot reply to this topic
3 replies to this topic

#1 tmason   Members   

326
Like
0Likes
Like

Posted 10 June 2014 - 07:41 PM

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.



#2 Hodgman   Moderators   

50629
Like
1Likes
Like

Posted 10 June 2014 - 08:49 PM

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



#3 tmason   Members   

326
Like
0Likes
Like

Posted 10 June 2014 - 08:52 PM

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.



#4 L. Spiro   Members   

25464
Like
4Likes
Like

Posted 10 June 2014 - 09:37 PM

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




Old topic!

Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.