ui: Fix comments

This commit is contained in:
Hajime Hoshi 2018-09-30 18:53:38 +09:00
parent 8df596396c
commit 308c8091cd

View File

@ -646,7 +646,7 @@ func (u *userInterface) loop(g GraphicsContext) error {
d := time.Duration(n2 - n1) d := time.Duration(n2 - n1)
// On macOS Mojave, vsync might not work (#692). // On macOS Mojave, vsync might not work (#692).
// As a tempoarry fix, just wait for a millisecond not to consume CPU too much. // As a tempoarry fix, just wait for a while not to consume CPU too much.
const threshold = 4 * time.Millisecond // 250 [Hz] const threshold = 4 * time.Millisecond // 250 [Hz]
if d < threshold { if d < threshold {
time.Sleep(threshold - d) time.Sleep(threshold - d)