mirror of
https://github.com/hajimehoshi/ebiten.git
synced 2024-12-26 11:48:55 +01:00
graphics: Add comments
This commit is contained in:
parent
464c575de6
commit
c98ec30c10
@ -85,6 +85,8 @@ func (c *graphicsContext) Update(afterFrameUpdate func()) error {
|
|||||||
tps := int(MaxTPS())
|
tps := int(MaxTPS())
|
||||||
updateCount := clock.Update(tps)
|
updateCount := clock.Update(tps)
|
||||||
|
|
||||||
|
// TODO: If updateCount is 0 and vsync is disabled, swapping buffers can be skipped.
|
||||||
|
|
||||||
if err := c.initializeIfNeeded(); err != nil {
|
if err := c.initializeIfNeeded(); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user