mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-25 11:18: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 {
|
func (c *uiContext) Update(afterFrameUpdate func()) error {
|
||||||
tps := int(MaxTPS())
|
updateCount := clock.Update(MaxTPS())
|
||||||
updateCount := clock.Update(tps)
|
|
||||||
|
|
||||||
// TODO: If updateCount is 0 and vsync is disabled, swapping buffers can be skipped.
|
// TODO: If updateCount is 0 and vsync is disabled, swapping buffers can be skipped.
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user