Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: [SOLVED] RenderWindow freeze  (Read 12995 times)

0 Members and 1 Guest are viewing this topic.

nihohit

  • Newbie
  • *
  • Posts: 37
    • View Profile
Re: RenderWindow freeze
« Reply #15 on: April 10, 2012, 09:17:24 pm »
Thanks!
Is this common with other classes too? Does this mean that the thread that opened the screen needs to handle display & input?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: RenderWindow freeze
« Reply #16 on: April 10, 2012, 09:56:30 pm »
Quote
Is this common with other classes too? Does this mean that the thread that opened the screen needs to handle display & input?
No, there's really no other constraint than what I said: events must be polled (DispatchEvents) in the thread that created the window. As far as I know, all common OSes behave like this (it's even worse on OS X where all windows must be managed in the main thread).
Laurent Gomila - SFML developer

 

anything