graphics: Add comments

This commit is contained in:
Hajime Hoshi 2018-07-18 03:05:09 +09:00
parent 464c575de6
commit c98ec30c10

View File

@ -85,6 +85,8 @@ func (c *graphicsContext) Update(afterFrameUpdate func()) error {
tps := int(MaxTPS())
updateCount := clock.Update(tps)
// TODO: If updateCount is 0 and vsync is disabled, swapping buffers can be skipped.
if err := c.initializeIfNeeded(); err != nil {
return err
}