Skip to content

Commit

Permalink
Set High Priority for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
Xphalnos authored Sep 17, 2024
1 parent 4a0bd87 commit b6582c3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/emulator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -42,9 +42,10 @@ Emulator::Emulator() {
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::UserDir);
Config::load(config_dir / "config.toml");

// Initialize NT API functions
// Initialize NT API functions and set high priority
#ifdef _WIN32
Common::NtApi::Initialize();
SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS);
#endif

// Start logger.
Expand Down

0 comments on commit b6582c3

Please sign in to comment.