mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
examples/windowsize: Reset TPS when resetting the Vsync mode
This commit is contained in:
parent
fb04b0d004
commit
14f0fbf844
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user