mirror of
https://github.com/godotengine/godot.git
synced 2024-12-15 10:12:40 +08:00
Merge pull request #59665 from lyuma/editor_normal_priority
This commit is contained in:
commit
ab24fb226d
@ -3626,7 +3626,11 @@ DisplayServerWindows::DisplayServerWindows(const String &p_rendering_driver, Win
|
||||
}
|
||||
#endif
|
||||
|
||||
if (!OS::get_singleton()->is_in_low_processor_usage_mode()) {
|
||||
if (!Engine::get_singleton()->is_editor_hint() && !OS::get_singleton()->is_in_low_processor_usage_mode()) {
|
||||
// Increase priority for projects that are not in low-processor mode (typically games)
|
||||
// to reduce the risk of frame stuttering.
|
||||
// This is not done for the editor to prevent importers or resource bakers
|
||||
// from making the system unresponsive.
|
||||
SetPriorityClass(GetCurrentProcess(), ABOVE_NORMAL_PRIORITY_CLASS);
|
||||
DWORD index = 0;
|
||||
HANDLE handle = AvSetMmThreadCharacteristics("Games", &index);
|
||||
|
Loading…
Reference in New Issue
Block a user