is sceRtcGetTickResolution a constant?

Discuss the development of new homebrew software, tools and libraries.

Moderators: cheriff, TyRaNiD

Post Reply
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

is sceRtcGetTickResolution a constant?

Post by jonny »

as the subject says, can i assume this?

thanks
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

It shoul be, since the time generation is based on these ticks, so if the ticks per second weren't constant, you'd get jumps in times.
PacManFan
Posts: 66
Joined: Sat Jun 25, 2005 6:01 am

Post by PacManFan »

I'm not sure of this, but I think it's based on the clock frequency. You might want to run a few tests to see what it is at 166, 266, and 333. Then you can generate your own constants. If you find out what they are offhand, please post them here.

-PMF
"I'm a little source code, short and stout
Here is my input, here is my out."

Author of PSPQuake and PSPSOne.
User avatar
Raphael
Posts: 646
Joined: Tue Jan 17, 2006 4:54 pm
Location: Germany
Contact:

Post by Raphael »

Well, that's what I was implicitly expecting, but should have mentionend. It's constant under a specific clock frequency.
chp
Posts: 313
Joined: Wed Jun 23, 2004 7:16 am

Post by chp »

When I looked at sceRtcGetTickResolution(), it was something like 1000000, which sounds like an oddly round number for 222Mhz. I suspect that if the timer is cycle-based, the RTC compensates this in its calculations.
GE Dominator
bulb
Posts: 50
Joined: Thu Jan 19, 2006 10:59 pm

Post by bulb »

My guess is tick resolution should be independent of CPU clock (always the same). Modifing CPU clock only means that some tasks will use more or less cycles, it has nothing to do with resolution. The same is true for Pentium CPUs anyway.
jonny
Posts: 351
Joined: Thu Sep 22, 2005 5:46 pm
Contact:

Post by jonny »

seems fixed to 1000000
( i'd bet i have seen it at 1500000 some time ago :S , but i can be wrong here)
Post Reply