mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-07-06 09:06:20 +00:00
Set High Priority for Windows (#961)
This commit is contained in:
parent
048b8aef58
commit
5638735af6
1 changed files with 2 additions and 1 deletions
|
@ -42,9 +42,10 @@ Emulator::Emulator() {
|
||||||
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::UserDir);
|
const auto config_dir = Common::FS::GetUserPath(Common::FS::PathType::UserDir);
|
||||||
Config::load(config_dir / "config.toml");
|
Config::load(config_dir / "config.toml");
|
||||||
|
|
||||||
// Initialize NT API functions
|
// Initialize NT API functions and set high priority
|
||||||
#ifdef _WIN32
|
#ifdef _WIN32
|
||||||
Common::NtApi::Initialize();
|
Common::NtApi::Initialize();
|
||||||
|
SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// Start logger.
|
// Start logger.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue