Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

too high FPS even with vsync on in Ebitengine but off by a hardware configuration #3009

Open
1 of 11 tasks
hajimehoshi opened this issue Jun 4, 2024 · 4 comments
Open
1 of 11 tasks

Comments

@hajimehoshi
Copy link
Owner

hajimehoshi commented Jun 4, 2024

Ebitengine Version

v2.7.0

Operating System

  • Windows
  • macOS
  • Linux
  • FreeBSD
  • OpenBSD
  • Android
  • iOS
  • Nintendo Switch
  • PlayStation 5
  • Xbox
  • Web Browsers

Go Version (go version)

Go 1.22

What steps will reproduce the problem?

Run a game with vsync on (ebiten.SetVsyncEnabled(true)), but vsync off by the hardware configuration

image

(The image was provided by @kyp)

What is the expected result?

FPS is the same as the refresh rate of the monitor

What happens instead?

FPS is too high

Anything else you feel useful to add?

Reported by @kyp

@hajimehoshi hajimehoshi added the bug label Jun 4, 2024
@hajimehoshi hajimehoshi added this to the v2.8.0 milestone Jun 4, 2024
@temidaradev
Copy link
Contributor

temidaradev commented Jun 12, 2024

Screen.Recording.2024-06-12.at.23.22.23.mov

is this video same with this issue, its on Safari and there is too much FPS and unstable Fps and it get laggy when I close the vsync

@temidaradev
Copy link
Contributor

Screen.Recording.2024-06-13.at.22.14.33.mov

and this is on Mac weird...

@hajimehoshi
Copy link
Owner Author

@lidldev do you enable vsync?

@temidaradev
Copy link
Contributor

@hajimehoshi as you see in the videos I close and open vsync and it become normal (60 fps) then when I disable vsync my fps is going too high

@hajimehoshi hajimehoshi modified the milestones: v2.8.0, v2.9.0 Sep 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants