Page 1 of 1

background app sleeping

PostPosted: Apr 10, 2004 @ 5:50am
by fast_rx
I've created an program that starts a new thread that sleeps for 60,000 milliseconds then the app calls ShowWindow(SW_HIDE).

When the time elapses in the new thread, it grabs the current screen buffer and melts it... yes, more or less a practical joke...

I used the extra thread because using pocketfrog, the application is pretty much suspended. And I want it to be as little load on the system as possible.

But the thing is, it causes my game and others to stutter really badly. Other. What, if anything, am I doing wrong? Is there another way to suspend and wake up your app at a later time?

PostPosted: Apr 10, 2004 @ 10:15am
by Dan East

PostPosted: Apr 10, 2004 @ 4:08pm
by fast_rx
Conan, can you assume a new thread will just default to THREAD_PRIORITY_NORMAL? That's what I was doing, but the problem turned out to not be the new thread at all.

It's the way pocketfrog suspends itself... which was fixed by adding a sleep statement.

I'll post this issue and the fix in the pocketfrog forum under the thread if anyone is interested.

PostPosted: Apr 10, 2004 @ 5:01pm
by Dave Johnston

PostPosted: Apr 10, 2004 @ 5:03pm
by sponge