VTimers working code?

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

Moderators: cheriff, TyRaNiD

Post Reply
HexDump
Posts: 70
Joined: Tue Jun 07, 2005 9:18 pm

VTimers working code?

Post by HexDump »

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.
urchin
Posts: 121
Joined: Thu Jun 02, 2005 5:41 pm

Post by urchin »

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.
HexDump
Posts: 70
Joined: Tue Jun 07, 2005 9:18 pm

Post by HexDump »

Yes I checked that, I based my code on it.

HexDump.
scriptx
Posts: 1
Joined: Wed Jun 28, 2006 7:34 am

Post by scriptx »

Post Reply