IPC is now a socket

This commit is contained in:
vaxerski 2022-03-21 18:29:41 +01:00
parent 30ae4be181
commit 509f0c9a8a
5 changed files with 126 additions and 75 deletions

View file

@ -20,6 +20,8 @@ void CThreadManager::handle() {
g_pConfigManager->init();
HyprCtl::startHyprCtlSocket();
while (3.1415f) {
slowUpdate++;
if (slowUpdate >= g_pConfigManager->getInt("general:max_fps")){
@ -27,8 +29,6 @@ void CThreadManager::handle() {
slowUpdate = 0;
}
HyprCtl::tickHyprCtl();
std::this_thread::sleep_for(std::chrono::microseconds(1000000 / g_pConfigManager->getInt("general:max_fps")));
}
}