elementary / gala

Gala Window Manager for elementary OS and Pantheon
https://elementary.io
GNU General Public License v3.0
270 stars 76 forks source link

Initiate realtime priority (SCHED_RR | SCHED_RESET_ON_FORK) for the compositor process #546

Open ylluminate opened 5 years ago

ylluminate commented 5 years ago

It would be a good idea to implement a patch similar to Pop!_OS where they patched GNOME Shell to have a realtime priority (SCHED_RR | SCHED_RESET_ON_FORK) for the compositor process.

Note this comment: https://www.reddit.com/r/linux/comments/bwhy7k/linux_needs_realtime_cpu_priority_and_a_universal/epy44lm/

In particular when asked how to implement this in other desktop environments, they responded: "You'd need to repackage your DE with a post install script that runs setcap CAP_SYS_NICE=+ep $PATH_TO_BIN, and a patch to the code that uses sched.h to set the process to realtime at the lowest priority."

ghost commented 5 years ago

For further context, the crossposted thread in the Reddit community of elementary OS can be read here.

worldofpeace commented 5 years ago

Looks like this is the patch they use in Pop!_OS

most likely based off of what's done in kwin