Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //st is set to now + 60ms,
- // Mental note: imagine GetTickCount64 is 100
- st := GetTickCount64() + 60;
- //if this isn't call.. then 0ms has been wasited
- if Assigned(@self.onMoveEvent) then self.onMoveEvent(@self, pos);
- // we subtract "st" from "now"..
- // GetTickCount64 is still 100 because MoveEvent was ran. So the result is 160-100, which gives a wait of 60ms
- Wait( Max(1, st-GetTickCount64()) );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement