| View previous topic :: View next topic |
| Author |
Message |
HexDump
Joined: 07 Jun 2005 Posts: 70
|
Posted: Mon May 22, 2006 7:08 pm Post subject: VTimers working code? |
|
|
Hi,
I have been playing with vtimers for a while, but I couldnīt been able to make them work, does anybody have some working code?.
What I do is easy:
I create a timer with sceKernelCreateVTimer then I register a timer for the handler with sceKernelSetVTimerHandler, this returns 1000000 because I want to retrigger the timer each second, and then I call sceKernelStartVTimer passid the UID I got from the Create function, is this ok?.
Thanks in advance,
HexDump. |
|
| Back to top |
|
 |
urchin
Joined: 02 Jun 2005 Posts: 121
|
Posted: Mon May 22, 2006 10:33 pm Post subject: |
|
|
That sounds like it should work. I posted recently on how to use them:
http://forums.ps2dev.org/viewtopic.php?t=5687
Are you checking the return code from sceKernelSetVTimerHandler? There seems to be a small issue registering timers from kernel mode, but if you are registering them in user mode no work around is needed. |
|
| Back to top |
|
 |
HexDump
Joined: 07 Jun 2005 Posts: 70
|
Posted: Mon May 22, 2006 10:46 pm Post subject: |
|
|
Yes I checked that, I based my code on it.
HexDump. |
|
| Back to top |
|
 |
scriptx
Joined: 28 Jun 2006 Posts: 1
|
|
| Back to top |
|
 |
|