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

Author Topic: Simulation pausing when window is dragged  (Read 1555 times)

0 Members and 1 Guest are viewing this topic.

Brendon

  • Jr. Member
  • **
  • Posts: 83
    • View Profile
    • http://blendogames.com
Simulation pausing when window is dragged
« on: April 10, 2011, 06:28:12 pm »
I noticed when I drag the window around, the application stops updating itself.  It resumes once I stop dragging the window around. This isn't a big deal for singleplayer games, but it's breaking a multiplayer game I'm working on.

From digging around the SFML forums, it seems this is an unresolvable issue relating to how Windows works. So, I was wondering if anyone has any tips or suggestions on how to work around this.

JAssange

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Simulation pausing when window is dragged
« Reply #1 on: April 10, 2011, 07:28:15 pm »
I believe handling events in another thread fixes this.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Simulation pausing when window is dragged
« Reply #2 on: April 10, 2011, 09:40:49 pm »
Quote
I believe handling events in another thread fixes this.

This is indeed the only workaround.
Laurent Gomila - SFML developer

 

anything