-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(Threading): add thread priorities for better input performance
- Loading branch information
1 parent
4c944e0
commit d1b9545
Showing
13 changed files
with
96 additions
and
4 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file added
BIN
+3.94 MB
addons/linuxthread/bin/liblinuxthread.linux.template_release.x86_64.so
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[configuration] | ||
|
||
entry_symbol = "linux_thread_library_init" | ||
compatibility_minimum = 4.1 | ||
|
||
[libraries] | ||
|
||
linux.debug.x86_64 = "res://addons/linuxthread/bin/liblinuxthread.linux.template_debug.x86_64.so" | ||
linux.release.x86_64 = "res://addons/linuxthread/bin/liblinuxthread.linux.template_release.x86_64.so" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
script = ExtResource("1_rbhla") | ||
name = "InputThread" | ||
target_tick_rate = 600 | ||
niceness = -20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
script = ExtResource("1_qvlys") | ||
name = "IOThread" | ||
target_tick_rate = 30 | ||
niceness = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
script = ExtResource("1_hqprx") | ||
name = "SystemThread" | ||
target_tick_rate = 600 | ||
niceness = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
script = ExtResource("1_svd22") | ||
name = "UtilityThread" | ||
target_tick_rate = 10 | ||
niceness = 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,3 +6,4 @@ | |
script = ExtResource("1_fg543") | ||
name = "WatchdogThread" | ||
target_tick_rate = 1 | ||
warn_after_num_missed_frames = 20 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
#!/bin/bash | ||
set -eu | ||
|
||
if [[ $EUID -ne 0 ]]; then | ||
exec pkexec --disable-internal-agent "$0" "$HOME" "$@" | ||
fi | ||
|
||
USER_HOME="$1" | ||
UPDATE_PATH="${USER_HOME}/.local/share/opengamepadui/updates/opengamepad-ui.x86_64" | ||
setcap 'cap_sys_nice=eip' "${UPDATE_PATH}" |
16 changes: 16 additions & 0 deletions
16
rootfs/usr/share/polkit-1/actions/org.shadowblip.setcap.policy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!DOCTYPE policyconfig PUBLIC "-//freedesktop//DTD PolicyKit Policy Configuration 1.0//EN" "http://www.freedesktop.org/standards/PolicyKit/1/policyconfig.dtd"> | ||
<policyconfig> | ||
<vendor>ShadowBlip</vendor> | ||
<vendor_url>http://www.github.com/shadowblip</vendor_url> | ||
<action id="org.shadowblip.pkexec.setcap"> | ||
<description>Allow negative nice values</description> | ||
<icon_name>package-x-generic</icon_name> | ||
<defaults> | ||
<allow_any>yes</allow_any> | ||
<allow_inactive>yes</allow_inactive> | ||
<allow_active>yes</allow_active> | ||
</defaults> | ||
<annotate key="org.freedesktop.policykit.exec.path">/usr/share/opengamepadui/scripts/make_nice</annotate> | ||
</action> | ||
</policyconfig> |