Page 1 of 1

Window Modal Timing Problems

Posted: Fri Aug 10, 2012 3:38 am
by RandomDever
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.

Re: Window Modal Timing Problems

Posted: Fri Aug 10, 2012 5:26 pm
by superLED
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.

Re: Window Modal Timing Problems

Posted: Sat Aug 11, 2012 4:17 am
by RandomDever
How do I do that though?
I thought that's what SDL_EVENTTHREAD did but it still freezes every time I manipulate the window.