From fb4770edc4912206cd391c2fac2ce9578000130f Mon Sep 17 00:00:00 2001 From: NovaRain Date: Sat, 7 Jan 2023 23:07:31 +0800 Subject: [PATCH] Increased the upper limit of ProcessorIdle --- artifacts/ddraw.ini | 4 ++-- sfall/Modules/MiscPatches.cpp | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/artifacts/ddraw.ini b/artifacts/ddraw.ini index b30feeec..c2d27cac 100644 --- a/artifacts/ddraw.ini +++ b/artifacts/ddraw.ini @@ -350,7 +350,7 @@ ExtraKillTypes=0 ;0 - Fallout default ;1 - Glovz's Damage Fix ;2 - Glovz's Damage Fix with Damage Multiplier tweak -;5 - Haenlomal's Yet Another Ammo Mod. +;5 - Haenlomal's Yet Another Ammo Mod DamageFormula=0 ;Prevents you from using 0 to escape from dialogue at any time. @@ -430,7 +430,7 @@ CorpseDeleteTime=6 ;Set a number of milliseconds to idle each input loop ;Set to -1 to disable ;Set to 0 to idle only if other processes are waiting for processor time (WinXP/2000: if processes have equal priority) -;Set to 1 (or some higher number if needed) to prevent 100% CPU use. The maximum is 30 +;Set to 1 (or some higher number if needed) to prevent 100% CPU use. The maximum is 50 ProcessorIdle=-1 ;Set to 1 if using the hero appearance mod diff --git a/sfall/Modules/MiscPatches.cpp b/sfall/Modules/MiscPatches.cpp index 38978ab7..aad1352f 100644 --- a/sfall/Modules/MiscPatches.cpp +++ b/sfall/Modules/MiscPatches.cpp @@ -1031,7 +1031,7 @@ void MiscPatches::init() { SafeWrite16(0x4C9F12, 0x7D6A); // push 125 (ms) int ms = IniReader::GetConfigInt("Misc", "ProcessorIdle", -1); - if (ms > idle) idle = (ms > 30) ? 30 : ms; + if (ms > idle) idle = (ms > 50) ? 50 : ms; if (idle >= 0) MakeCall(0x4C9CF8, GNW95_process_message_hack, 2); BlockCall(0x4425E6); // Patch out ereg call