From 365740aca90ec449ae6ac5cdf325c78d626db161 Mon Sep 17 00:00:00 2001 From: Hajime Hoshi Date: Tue, 3 Jan 2023 21:39:32 +0900 Subject: [PATCH] internal/ui: update comments Updates #2521 --- internal/ui/ui_glfw.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/ui/ui_glfw.go b/internal/ui/ui_glfw.go index 2b53e6be3..16c8e84ca 100644 --- a/internal/ui/ui_glfw.go +++ b/internal/ui/ui_glfw.go @@ -1065,8 +1065,8 @@ func (u *userInterfaceImpl) updateGame() error { t2 = time.Now() } - // When a window is not focused, SwapBuffers might return immediately and CPU might be busy. - // Mitigate this by sleeping (#982). + // When a window is not focused or in another space, SwapBuffers might return immediately and CPU might be busy. + // Mitigate this by sleeping (#982, #2521). if unfocused { d := t2.Sub(t1) const wait = time.Second / 60