Skip to content

loki-code/Gta-Fixer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

GTA San Andreas Fixer

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.

Why this exists

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.

Features

  • ✅ 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.

Build

dotnet build

Run

dotnet run --project src/GtaFixer.App

Publish as .exe (Windows)

dotnet publish src/GtaFixer.App -c Release -r win-x64 --self-contained false /p:PublishSingleFile=true

Published binary will be in:

src/GtaFixer.App/bin/Release/net8.0-windows/win-x64/publish/

Configuration

Edit src/GtaFixer.App/appsettings.json:

  • ProcessName: default gta_sa
  • PollIntervalSeconds: how often checks run
  • FreezeThresholdSeconds: how long app must remain not responding before kill
  • EnableMemoryTrim: whether memory trim is enabled
  • MemoryTrimThresholdMb: trim when above this working set

Notes

  • 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.

About

Gta Fixer

Resources

Stars

Watchers

Forks

Contributors