Skip to content

Conversation

@httpsworldview
Copy link
Contributor

@httpsworldview httpsworldview commented Feb 2, 2026

Move refresh/message processing into the main event loop so frame callbacks and Wayland events can trigger redraws immediately instead of being gated by fixed 50ms timer.

  • layershellev: process pending messages, return data, closes, and refresh requests on each run tick after roundtrip
  • sessionlockev: mirror for parity
  • (I also added some comments and a guard that was present in sessionlockev to layershellev)

This allows for fast rendering at the cost of CPU usage in some instances. In general it is quite a minor increase. My changes should also resolve issue #159.

I really like this library, that cap was the only thing preventing me from utilizing it in my own project. I hope this is an acceptable change! Let me know if any adjustments are needed.

Move refresh/message processing into the main event loop so frame callbacks and Wayland events can trigger redraws immediately instead of being gated by fixed 50ms timer.

- layershellev: process pending messages, return data, closes, and refresh requests on each run tick after roundtrip
- sessionlockev: mirror for parity
@Decodetalkers
Copy link
Collaborator

then can you help fix the typos? thanks. I will consider this pr today.

@Decodetalkers
Copy link
Collaborator

I think it should be merged.. thank you very much. let me merge it

@Decodetalkers Decodetalkers merged commit 9af9811 into waycrate:master Feb 3, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants