I have a timed trigger class that is not paused when I move the window or re-size the window or switch to another window.
Does anyone know how to fix this?
BTW I'm using SDL.
Window Modal Timing Problems
Moderator: Coders of Rage
-
- Chaos Rift Regular
- Posts: 198
- Joined: Thu Mar 26, 2009 8:42 pm
- Current Project: My Engine
- Programming Language of Choice: C++
Window Modal Timing Problems
My first game: http://donsvoice.com/randomdever/Duck%2 ... 01.0.0.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
- superLED
- Chaos Rift Junior
- Posts: 303
- Joined: Sun Nov 21, 2010 10:56 am
- Current Project: Engine
- Favorite Gaming Platforms: N64
- Programming Language of Choice: C++, PHP
- Location: Norway
Re: Window Modal Timing Problems
Make the dragging of the window and the re-sizing of the window a part of a separate thread. I think that should do the trick.
That way, when you're doing stuff with the window, the game/program doesn't freeze.
That way, when you're doing stuff with the window, the game/program doesn't freeze.
-
- Chaos Rift Regular
- Posts: 198
- Joined: Thu Mar 26, 2009 8:42 pm
- Current Project: My Engine
- Programming Language of Choice: C++
Re: Window Modal Timing Problems
How do I do that though?
I thought that's what SDL_EVENTTHREAD did but it still freezes every time I manipulate the window.
I thought that's what SDL_EVENTTHREAD did but it still freezes every time I manipulate the window.
My first game: http://donsvoice.com/randomdever/Duck%2 ... 01.0.0.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip
My second game: http://donsvoice.com/randomdever/Space%20Invaders.zip
My third game: http://donsvoice.com/randomdever/BreakOut!.zip