Page 1 of 1

A Function to get the time using pspsdk ??

Posted: Thu Jul 19, 2012 10:17 pm
by virus7
hey geeks ... ^_^

I was looking in the documentation of pspsdk for a function that start counting the time once the sdk initialize just like in SDL -> SDL_getTime();

Till now I didn't found any ... is there any idea how to handle timer with pspsdk .. cuz it really run fast ! and I need to slow it down ^_^

Re: A Function to get the time using pspsdk ??

Posted: Sun Jul 22, 2012 5:37 am
by codycox.c
Looks like you need a function to wait for vblank not a timer. I will look later for the function.

Re: A Function to get the time using pspsdk ??

Posted: Mon Jul 23, 2012 2:42 am
by codycox.c
Try using sceDisplayWaitVblankStart(). It will wait for vblank to start so putting that in your loop will keep it from running too fast.