Skip to content

Commit

Permalink
sched_ext: drop -c 0 from the gaming preset with scx_bpfland (#23)
Browse files Browse the repository at this point in the history
Running bpfland with `-c 0` can lead to stuttery behavior if multiple
worklodas are running in a system at the same time.

Since this option offers minimal benefits for gaming and is only
effective when a *single* application is running, it's just safer to
avoid using it in the gaming profile.

Signed-off-by: Andrea Righi <[email protected]>
  • Loading branch information
arighi authored Oct 7, 2024
1 parent 2f5414b commit 9b4a3fd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/schedext-window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ constexpr auto get_scx_flags(std::string_view scx_sched, SchedMode scx_mode) noe
if (scx_mode == SchedMode::Auto) {
} else if (scx_mode == SchedMode::Gaming) {
if (scx_sched == "scx_bpfland"sv) {
return "-c 0 -k -m performance"sv;
return "-k -m performance"sv;
} else if (scx_sched == "scx_lavd"sv) {
return "--performance"sv;
}
Expand Down

0 comments on commit 9b4a3fd

Please sign in to comment.