mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2025-01-27 11:12:44 +01:00
parent
ede16afd30
commit
547621ddad
@ -73,7 +73,7 @@ func calcCountFromTPS(tps int64, now int64) int {
|
|||||||
count := 0
|
count := 0
|
||||||
syncWithSystemClock := false
|
syncWithSystemClock := false
|
||||||
|
|
||||||
if diff > int64(time.Second)*5/60 {
|
if diff > int64(time.Second)*5/int64(tps) {
|
||||||
// The previous time is too old.
|
// The previous time is too old.
|
||||||
// Let's force to sync the game time with the system clock.
|
// Let's force to sync the game time with the system clock.
|
||||||
syncWithSystemClock = true
|
syncWithSystemClock = true
|
||||||
|
Loading…
Reference in New Issue
Block a user