Skip to content

Conversation

@gucio321
Copy link
Collaborator

@gucio321 gucio321 commented Jun 6, 2025

  • SetShouldClose
  • Refresh (noop)
  • ...

gucio321 added 3 commits June 6, 2025 08:34
we cannot import glfw imgui impl if there is no glfw shared library linked
@0xkalle
Copy link

0xkalle commented Jun 6, 2025

One question, sorry if it makes no sense: Do we need a way to control the TPS here, which we can later use in giu as well to control how often "Update" is called?

@gucio321
Copy link
Collaborator Author

gucio321 commented Jun 6, 2025

Update = Refresh (some historical stuff in giu)

Generally the backend in cimgui-go is responsible for TPS and Refresh forces another redraw;
This was because in glfwbackend there was some "power saving" system implemented (?) which causes backend does not render if there is no user input (glfw stays in pollEvents) (or at least this is how it used to be before #428). Refresh forced glfw to update by sending an empty event.

In ebiten however I don't see any way to do something similar and ebiten always renders without waiting for events.

@gucio321 gucio321 merged commit e81438c into AllenDang:main Jun 6, 2025
5 checks passed
@gucio321 gucio321 deleted the ebiten-backend-updates branch June 6, 2025 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants