| View previous topic :: View next topic |
| Author |
Message |
Cpasjuste
Joined: 29 May 2005 Posts: 214
|
Posted: Tue Oct 16, 2007 7:40 am Post subject: sceDisplayGetFramePerSec |
|
|
| Does someone know how to use this function correctly ? I can't find any help on it. |
|
| Back to top |
|
 |
SilverSpring
Joined: 27 Feb 2007 Posts: 115
|
Posted: Tue Oct 16, 2007 8:35 am Post subject: |
|
|
What do you mean correctly? It just returns a float (which it just gets from the vsync freq):
| Code: | float sceDisplayGetFramePerSec()
{
return(sceLcdcGetVsyncFreq());
} |
_________________ PSP PRX LibDocs |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Oct 16, 2007 1:19 pm Post subject: |
|
|
| Wouldn't that always be 60 as long as the clock speed wasn't changed? |
|
| Back to top |
|
 |
Cpasjuste
Joined: 29 May 2005 Posts: 214
|
Posted: Tue Oct 16, 2007 7:03 pm Post subject: |
|
|
| Yes it seems that it always return the same value even with changing the cpu speed, it's why i was asking :/ |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Tue Oct 16, 2007 8:55 pm Post subject: |
|
|
I wonder if you could calculate it then?
vsync freq = CPU clock divided by 3.7 |
|
| Back to top |
|
 |
SilverSpring
Joined: 27 Feb 2007 Posts: 115
|
Posted: Tue Oct 16, 2007 11:46 pm Post subject: |
|
|
How to calculate what, vsync freq?
(pixel_clk_freq * cycles_per_pixel)/(row_pixels * column_pixel) ==
(9MHz * 1)/(525 * 286) ==
59.9400599........ etc. etc. Hz _________________ PSP PRX LibDocs |
|
| Back to top |
|
 |
Cpasjuste
Joined: 29 May 2005 Posts: 214
|
Posted: Tue Oct 16, 2007 11:51 pm Post subject: |
|
|
| In fact this is not very usefull, the goal would be to calculate the frame per seconds we get under any aplications or under the vsh for exemple. |
|
| Back to top |
|
 |
SilverSpring
Joined: 27 Feb 2007 Posts: 115
|
Posted: Wed Oct 17, 2007 12:13 am Post subject: |
|
|
Yea the name is misleading (sceDisplayGetFramePerSec). Its because of the devkit external displays (which would return different values - depending on the type of display used. The devkit supports many different displays). _________________ PSP PRX LibDocs |
|
| Back to top |
|
 |
Cpasjuste
Joined: 29 May 2005 Posts: 214
|
Posted: Wed Oct 17, 2007 12:15 am Post subject: |
|
|
Ok, it's more clear now. I will look in another direction, maybe sceDisplayGetVcount would do the trick, but i dont think it will count external vblank ... i need to spent more time on this.
Thanks for your answers ! |
|
| Back to top |
|
 |
|