Improve accuratcy of CoreTiming::ScheduleEvent().

This commit is contained in:
Unknown W. Brackets 2012-12-20 22:48:59 -08:00
parent 4fb6c8c0ac
commit 84b6c3a7c2

View file

@ -245,7 +245,7 @@ void ScheduleEvent(int cyclesIntoFuture, int event_type, u64 userdata)
Event *ne = GetNewEvent();
ne->userdata = userdata;
ne->type = event_type;
ne->time = globalTimer + cyclesIntoFuture;
ne->time = GetTicks() + cyclesIntoFuture;
AddEventToQueue(ne);
}