mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-24 18:02:02 +01:00
clock: Fix comments
This commit is contained in:
parent
b7d559fdf3
commit
1ea6bb2b6a
@ -55,7 +55,8 @@ func Frames(timeDuration time.Duration, fps int) (int, bool) {
|
||||
// As tick can be updated discountinuously, use system clock supplementarily.
|
||||
|
||||
if int64(timeDuration) > 5*int64(time.Second)/int64(fps) {
|
||||
// The previous time is too old. Let's assume that the window was unfocused.
|
||||
// The previous time is too old.
|
||||
// Let's force to sync the logical frame with the OS clock (or tick).
|
||||
return 0, true
|
||||
}
|
||||
count = int(int64(timeDuration) * int64(fps) / int64(time.Second))
|
||||
|
Loading…
Reference in New Issue
Block a user