hajimehoshi / ebiten

Ebitengine - A dead simple 2D game engine for Go
https://ebitengine.org
Apache License 2.0
10.41k stars 635 forks source link

examples/windowsize: FPS is too high (about 120) on macOS w/ OpenGL #2472

Open hajimehoshi opened 1 year ago

hajimehoshi commented 1 year ago

Ebitengine Version

d40760716838f5c424da09d8f468e3a72fdc72ab

Operating System

Go Version (go version)

go version go1.19.2 darwin/amd64

What steps will reproduce the problem?

Run examples/windowsize with EBITENGINE_GRAPHICS_LIBRARY=opengl

What is the expected result?

60FPS

What happens instead?

About 120FPS

Anything else you feel useful to add?

This might be an issue from macOS 13.

                    'c.          hajimehoshi@Hajimes-MacBook-Pro-2020.local 
                 ,xNMM.          ------------------------------------------ 
               .OMMMMo           OS: macOS 13.0 22A380 x86_64 
               OMMM0,            Host: MacBookPro16,2 
     .;loddo:' loolloddol;.      Kernel: 22.1.0 
   cKMMMMMMMMMMNWMMMMMMMMMM0:    Uptime: 5 days, 12 hours, 52 mins 
 .KMMMMMMMMMMMMMMMMMMMMMMMWd.    Packages: 188 (brew) 
 XMMMMMMMMMMMMMMMMMMMMMMMX.      Shell: bash 3.2.57 
;MMMMMMMMMMMMMMMMMMMMMMMM:       Resolution: 1680x1050@2x 
:MMMMMMMMMMMMMMMMMMMMMMMM:       DE: Aqua 
.MMMMMMMMMMMMMMMMMMMMMMMMX.      WM: Quartz Compositor 
 kMMMMMMMMMMMMMMMMMMMMMMMMWd.    WM Theme: Blue (Light) 
 .XMMMMMMMMMMMMMMMMMMMMMMMMMMk   Terminal: tmux 
  .XMMMMMMMMMMMMMMMMMMMMMMMMK.   CPU: Intel i7-1068NG7 (8) @ 2.30GHz 
    kMMMMMMMMMMMMMMMMMMMMMMd     GPU: Intel Iris Plus Graphics 
     ;KMMMMMMMWXXWMMMMMMMk.      Memory: 20445MiB / 32768MiB 
       .cooc,.    .,coo:.
cauesmelo commented 6 months ago

Seems to be related to https://github.com/glfw/glfw/issues/2249. There is a PR(https://github.com/glfw/glfw/pull/2277) open to fix this, I will watch any updates.