Skip to content

Commit

Permalink
Increase priority on input threads
Browse files Browse the repository at this point in the history
  • Loading branch information
Eeems committed Feb 5, 2024
1 parent 6a93b66 commit 56cf8ce
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion applications/display-server/evdevhandler.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
#include <QKeyEvent>
#include <liboxide/devicesettings.h>
#include <liboxide/debug.h>
#include <liboxide/threading.h>
#include <linux/input.h>
#include <sys/socket.h>
#include <cstring>
Expand All @@ -18,7 +19,7 @@ EvDevHandler* EvDevHandler::init(){
}
instance = new EvDevHandler();
instance->moveToThread(instance);
instance->start();
Oxide::startThreadWithPriority(instance, QThread::HighestPriority);
return instance;
}

Expand Down
1 change: 1 addition & 0 deletions shared/libblight_client/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ void __sendEvents(unsigned int device, std::vector<Blight::partial_input_event_t
void __readInput(){
_INFO("%s", "InputWorker starting");
prctl(PR_SET_NAME, "InputWorker\0", 0, 0, 0);
nice(-10);
auto fd = blightConnection->input_handle();
std::map<unsigned int,std::vector<Blight::partial_input_event_t>> events;
while(blightConnection != nullptr && getenv("OXIDE_PRELOAD_DISABLE_INPUT") == nullptr){
Expand Down

0 comments on commit 56cf8ce

Please sign in to comment.