| View previous topic :: View next topic |
| Author |
Message |
jonny
Joined: 22 Sep 2005 Posts: 351
|
Posted: Fri Jan 27, 2006 2:25 am Post subject: is sceRtcGetTickResolution a constant? |
|
|
as the subject says, can i assume this?
thanks |
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Fri Jan 27, 2006 3:16 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
PacManFan
Joined: 25 Jun 2005 Posts: 66
|
Posted: Fri Jan 27, 2006 3:36 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Fri Jan 27, 2006 4:00 am Post subject: |
|
|
| Well, that's what I was implicitly expecting, but should have mentionend. It's constant under a specific clock frequency. |
|
| Back to top |
|
 |
chp
Joined: 23 Jun 2004 Posts: 313
|
Posted: Fri Jan 27, 2006 4:18 am Post subject: |
|
|
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 |
|
| Back to top |
|
 |
bulb
Joined: 19 Jan 2006 Posts: 50
|
Posted: Fri Jan 27, 2006 4:30 am Post subject: |
|
|
| 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. |
|
| Back to top |
|
 |
jonny
Joined: 22 Sep 2005 Posts: 351
|
Posted: Fri Jan 27, 2006 6:21 am Post subject: |
|
|
seems fixed to 1000000
( i'd bet i have seen it at 1500000 some time ago :S , but i can be wrong here) |
|
| Back to top |
|
 |
|