From 14f0fbf844782ad06e694ab69ab574e221509b7b Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Thu, 5 Aug 2021 03:01:11 +0900 Subject: [PATCH] examples/windowsize: Reset TPS when resetting the Vsync mode --- examples/windowsize/main.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/examples/windowsize/main.go b/examples/windowsize/main.go index 00a681a00..93d189e66 100644 --- a/examples/windowsize/main.go +++ b/examples/windowsize/main.go @@ -212,6 +212,8 @@ func (g *game) Update() error { fpsMode = ebiten.FPSModeVsyncOffMinimum case ebiten.FPSModeVsyncOffMinimum: fpsMode = ebiten.FPSModeVsyncOn + // Reset TPS + tps = 60 } } if inpututil.IsKeyJustPressed(ebiten.KeyT) {