~whynothugo/wdisplays-ng#1: 
Very high CPU usage

Currently the GUI renders in a loop, while true.

We should actually ask the compositor to request the next frame when necessary. This should reduce rendering to 60frames/second (or whatever the compositors caps at).

This'll also avoid rendering when in the background.

Status
REPORTED
Submitter
~whynothugo
Assigned to
No-one
Submitted
1 year, 8 months ago
Updated
1 year, 8 months ago
Labels
No labels applied.

~whynothugo 1 year, 8 months ago

Note: it might not be RENDERING more than necessary, wdisplay might be requesting frames from wlr-screencopy-unstable-v1 more than necessary.

~whynothugo 1 year, 8 months ago

Apparently, when a screencopy frame is received, another is immediately requested. Even when the main window is in background.

Can't find if the request cycle is tied to rendering or not -- it would seem not.

Register here or Log in to comment, or comment via email.