Window Modal Timing Problems

Whether you're a newbie or an experienced programmer, any questions, help, or just talk of any language will be welcomed here.

Moderator: Coders of Rage

Post Reply
RandomDever
Chaos Rift Regular
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

Post 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.
User avatar
superLED
Chaos Rift Junior
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

Post 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.
RandomDever
Chaos Rift Regular
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

Post 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.
Post Reply