Why ebiten.FPSModeVsyncOffMinimum is deprecated ? #3107
Unanswered
rverpillot
asked this question in
Q&A
Replies: 2 comments 1 reply
-
As far as I remember the discussion, the reason is to simplify the model of Ebitengine, especially Update. |
Beta Was this translation helpful? Give feedback.
0 replies
-
Please, do not remove this feature, because there is not a true alternative (too many call to |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I'm coding a desktop application (not a game) with Ebiten, and because it's deprecated I replaced
ebiten.SetFPSMode(ebiten.FPSModeVsyncOffMinimum)
byebiten.SetScreenClearedEveryFrame(false)
and redraw only when necessary. But the CPU usage has increased significantly (CPU is between 5% and 15% whereas previously it was 1% or lower).The big difference is that by using
FPSModeVsyncOffMinimum
ebiten engine usesglfw.WaitEvents()
instead ofglfw.PollEvents()
and the CPU usage is significantly lower.I tried to reduce the TPS, but it doesn't work.
If
ebiten.FPSModeVsyncOffMinimum
is deprecated, is it possible to useglfw.WaitEvents()
in another way in ebiten ?Beta Was this translation helpful? Give feedback.
All reactions