A lightweight Windows console utility that helps stabilize GTA San Andreas (gta_sa.exe) by:
- Raising process priority to reduce stutter.
- Optionally trimming memory usage when it grows too high.
- Detecting real freezes (
Not Responding) and only then force-closing the game.
Some systems experience:
- lag spikes,
- long frame hitches,
- the game hanging and never recovering.
This tool continuously monitors the game process and applies safe optimizations while avoiding false freeze kills.
- ✅ Watches for
gta_sa.exe. - ✅ Boosts process priority to
High. - ✅ Detects freeze using consecutive not-responding checks.
- ✅ Closes game only after freeze threshold is reached.
- ✅ Optional memory trim (
EmptyWorkingSet) to reduce spikes. - ✅ Configurable via
appsettings.json.
dotnet builddotnet run --project src/GtaFixer.Appdotnet publish src/GtaFixer.App -c Release -r win-x64 --self-contained false /p:PublishSingleFile=truePublished binary will be in:
src/GtaFixer.App/bin/Release/net8.0-windows/win-x64/publish/
Edit src/GtaFixer.App/appsettings.json:
ProcessName: defaultgta_saPollIntervalSeconds: how often checks runFreezeThresholdSeconds: how long app must remain not responding before killEnableMemoryTrim: whether memory trim is enabledMemoryTrimThresholdMb: trim when above this working set
- Run this fixer before launching GTA SA, or while the game is running.
- Freeze kill logic only triggers when the process is repeatedly not responding.
- If your game uses a different executable name, change
ProcessName.