Skip to content

Commit

Permalink
Give dispatch source timer in LogicEngine zero leeway instead of ha…
Browse files Browse the repository at this point in the history
…lf a frame of leeway
  • Loading branch information
ianngiaw committed Apr 20, 2016
1 parent 0e3514d commit 5c7e8dd
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions Courir/Courir/LogicEngine.swift
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ class LogicEngine {
0))

dispatch_source_set_timer(dispatchTimer!, dispatch_walltime(nil, 0),
NSEC_PER_SEC / UInt64(framerate),
NSEC_PER_SEC / UInt64(framerate * 2))
NSEC_PER_SEC / UInt64(framerate), 0)
dispatch_source_set_event_handler(dispatchTimer!, update)
dispatch_resume(dispatchTimer!)
}
Expand Down

0 comments on commit 5c7e8dd

Please sign in to comment.