mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 03:08:54 +01:00
ui: Refactoring
This commit is contained in:
parent
b5d8be96a6
commit
69c781a03d
@ -73,8 +73,7 @@ func (c *uiContext) SetSize(screenWidth, screenHeight int, screenScale float64)
|
||||
}
|
||||
|
||||
func (c *uiContext) Update(afterFrameUpdate func()) error {
|
||||
tps := int(MaxTPS())
|
||||
updateCount := clock.Update(tps)
|
||||
updateCount := clock.Update(MaxTPS())
|
||||
|
||||
// TODO: If updateCount is 0 and vsync is disabled, swapping buffers can be skipped.
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user