forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

How do I slow down the main game loop?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development
View previous topic :: View next topic  
Author Message
Acegikmo



Joined: 19 Jul 2008
Posts: 15

PostPosted: Mon Aug 04, 2008 5:11 am    Post subject: How do I slow down the main game loop? Reply with quote

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
View user's profile Send private message MSN Messenger
whistler



Joined: 04 Mar 2008
Posts: 40

PostPosted: Mon Aug 04, 2008 5:20 am    Post subject: Reply with quote

sceKernelDelayThread(1000000); // Delay for a second
Back to top
View user's profile Send private message
Acegikmo



Joined: 19 Jul 2008
Posts: 15

PostPosted: Mon Aug 04, 2008 5:43 am    Post subject: Reply with quote

Thanks, I'll try that :)
Where should I place it?
Before the draw?
After?
Before input?
Back to top
View user's profile Send private message MSN Messenger
Maxiime



Joined: 19 Jun 2008
Posts: 18

PostPosted: Mon Aug 04, 2008 7:14 am    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group