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