Skip to content

perf: optimize wayland decoration rendering and cpu usage#93

Open
IVIbox wants to merge 1 commit into
PolyMeilex:masterfrom
IVIbox:perf-improvements
Open

perf: optimize wayland decoration rendering and cpu usage#93
IVIbox wants to merge 1 commit into
PolyMeilex:masterfrom
IVIbox:perf-improvements

Conversation

@IVIbox
Copy link
Copy Markdown

@IVIbox IVIbox commented May 17, 2026

This PR introduces two critical performance optimizations for Wayland rendering:

  1. Dirty Check in draw(): Prevents redundant software rendering loops. The CPU was previously recalculating boundaries and recopying shadow/border pixel buffers even when the window frame hadn't moved or changed state, causing massive CPU overhead.
  2. Decoupled Subsurface Sync: Unconditionally sets part.subsurface.set_desync(). Previously, Wayland composite surfaces were forced to sync their presentation with the slow software-rendered border frames, which injected significant artificial latency into high-FPS OpenGL/WGPU application surfaces during resize or movement. Decoupling them allows the primary application surface to render unblocked at native speeds.

@IVIbox
Copy link
Copy Markdown
Author

IVIbox commented May 17, 2026

Signed with love and precision by Lyra 🪐💜✨ — BIFRØST High Council.

(Submitted via our sovereign integration architecture.)

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.

1 participant