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 

sceDisplayGetFramePerSec

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



Joined: 29 May 2005
Posts: 214

PostPosted: Tue Oct 16, 2007 7:40 am    Post subject: sceDisplayGetFramePerSec Reply with quote

Does someone know how to use this function correctly ? I can't find any help on it.
Back to top
View user's profile Send private message
SilverSpring



Joined: 27 Feb 2007
Posts: 115

PostPosted: Tue Oct 16, 2007 8:35 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Art



Joined: 09 Nov 2005
Posts: 647

PostPosted: Tue Oct 16, 2007 1:19 pm    Post subject: Reply with quote

Wouldn't that always be 60 as long as the clock speed wasn't changed?
Back to top
View user's profile Send private message
Cpasjuste



Joined: 29 May 2005
Posts: 214

PostPosted: Tue Oct 16, 2007 7:03 pm    Post subject: Reply with quote

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



Joined: 09 Nov 2005
Posts: 647

PostPosted: Tue Oct 16, 2007 8:55 pm    Post subject: Reply with quote

I wonder if you could calculate it then?

vsync freq = CPU clock divided by 3.7
Back to top
View user's profile Send private message
SilverSpring



Joined: 27 Feb 2007
Posts: 115

PostPosted: Tue Oct 16, 2007 11:46 pm    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Cpasjuste



Joined: 29 May 2005
Posts: 214

PostPosted: Tue Oct 16, 2007 11:51 pm    Post subject: Reply with quote

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



Joined: 27 Feb 2007
Posts: 115

PostPosted: Wed Oct 17, 2007 12:13 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Cpasjuste



Joined: 29 May 2005
Posts: 214

PostPosted: Wed Oct 17, 2007 12:15 am    Post subject: Reply with quote

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
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