From 5c6dcaf6343b349b217afe6475914301581aea53 Mon Sep 17 00:00:00 2001 From: "Grayson Riffe (Laptop)" <graysonriffe@yahoo.com> Date: Mon, 23 Aug 2021 11:16:03 -0500 Subject: [PATCH] Added sleep on input thread to further reduce CPU usage --- NothinFancy/src/Application.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/NothinFancy/src/Application.cpp b/NothinFancy/src/Application.cpp index f5f1882..a6ae135 100644 --- a/NothinFancy/src/Application.cpp +++ b/NothinFancy/src/Application.cpp @@ -74,6 +74,7 @@ namespace nf { break; } } + std::this_thread::sleep_for(std::chrono::milliseconds(5)); } mainThread.join(); }