| View previous topic :: View next topic |
| Author |
Message |
Acegikmo
Joined: 19 Jul 2008 Posts: 15
|
Posted: Mon Aug 04, 2008 5:11 am Post subject: How do I slow down the main game loop? |
|
|
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? |
|
| Back to top |
|
 |
whistler
Joined: 04 Mar 2008 Posts: 40
|
Posted: Mon Aug 04, 2008 5:20 am Post subject: |
|
|
| sceKernelDelayThread(1000000); // Delay for a second |
|
| Back to top |
|
 |
Acegikmo
Joined: 19 Jul 2008 Posts: 15
|
Posted: Mon Aug 04, 2008 5:43 am Post subject: |
|
|
Thanks, I'll try that :)
Where should I place it?
Before the draw?
After?
Before input? |
|
| Back to top |
|
 |
Maxiime
Joined: 19 Jun 2008 Posts: 18
|
Posted: Mon Aug 04, 2008 7:14 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
|