ui: Refactoring

This commit is contained in:
Hajime Hoshi 2019-11-25 02:26:12 +09:00
parent b5d8be96a6
commit 69c781a03d

View File

@ -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.