How do I slow down the main game loop?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
Acegikmo
Posts: 15
Joined: Sat Jul 19, 2008 1:18 am

How do I slow down the main game loop?

Post by Acegikmo »

I tried sleep(1);, but that sleeps for one second, not one millisecond.
And 0.001 doesn't work at all.

How do you delay each loop?
whistler
Posts: 39
Joined: Tue Mar 04, 2008 7:08 am

Post by whistler »

sceKernelDelayThread(1000000); // Delay for a second
Acegikmo
Posts: 15
Joined: Sat Jul 19, 2008 1:18 am

Post by Acegikmo »

Thanks, I'll try that :)
Where should I place it?
Before the draw?
After?
Before input?
Maxiime
Posts: 18
Joined: Thu Jun 19, 2008 11:34 pm

Post by Maxiime »

Doesn't matter.

I think the best place is after or before draw and before input.
(or at the same place where you placed 'sleep'?)

Cya
Post Reply