From c932d7a31715f659fdb2ba6cc51a3fc1e3e6d94d Mon Sep 17 00:00:00 2001
From: Nicolas Pope <nwpope@utu.fi>
Date: Sun, 16 Jun 2019 11:16:37 +0300
Subject: [PATCH] Attempt to set process priority on Windows

---
 applications/vision/src/main.cpp | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/applications/vision/src/main.cpp b/applications/vision/src/main.cpp
index 0119a659a..4beea6fdb 100644
--- a/applications/vision/src/main.cpp
+++ b/applications/vision/src/main.cpp
@@ -123,6 +123,9 @@ static void run(ftl::Configurable *root) {
 }
 
 int main(int argc, char **argv) {
+#ifdef WIN32
+	SetPriorityClass(GetCurrentProcess(), HIGH_PRIORITY_CLASS);
+#endif
 	std::cout << "FTL Vision Node " << FTL_VERSION_LONG << std::endl;
 	auto root = ftl::configure(argc, argv, "vision_default");
 	
-- 
GitLab