xKumorio/ModernFpsBoost
60+ SSE2/SSE4.1 CPU & engine optimizations, caching, and built-in LuaJIT / SA-MP / stutter profilers for GTA:SA 1.0 US, SA-MP 0.3.7 R1-R5 & 0.3.DL
Adds its include files, with the libraries it depends on, to the Pawn compiler in your browser, ready to include in a script.
README.md
ModernFpsBoost
English | Русский
Deep CPU/FPS optimization suite for GTA:SA 1.0 US, SA-MP 0.3.7 R1 / R2 / R3-1 / R4 / R5-1, 0.3.DL-R1, and open.mp.
Every optimization is an individual section in ModernFpsBoost.ini (enabled=1/0) and can be toggled live in-game via the F10 menu.
Author: Softik Inquisitor
Download
- Direct download (latest CI build): ModernFpsBoost.asi
- Releases page: Releases
- CI builds from source: GitHub Actions
Installation
- Drop
ModernFpsBoost.asiinto your GTA:SA root folder (next togta_sa.exe). ModernFpsBoost.iniis generated automatically on first launch.- To switch everything to English (menu +
.inicomments), setenglish=1under[Language]at the very top ofModernFpsBoost.ini(or toggle Language -> English in the F10 -> Settings tab). On next launch,.inicomments rewrite to English automatically while preserving all your settings. - Press F10 in-game to open the settings menu, live fix stats, and built-in Lua / SA-MP / GTA / Stutter profilers.
In-Game Menu (F10)
Key Optimizations
- GTA:SA Engine (SSE2 / SSE3 / SSE4.1):
- Ray, sphere, triangle, box, and camera line collisions rewritten in SSE2 (
ColTriSSE,ColBoxSSE,ColLinesSSE,ColPlaneCache) with fullOpenSAA/LimitAdjuster/0.3.DLcompatibility - RenderWare &
CMatrixmath, camera frustum culling, ped skinning, and skeleton animation blending in SSE2 (MatrixSSE,CMatrixSSE,FrustumSSE,AnimMathSSE,AnimBlendSSE,FrameSyncFast,SkinMatrixSSE) Fx_cparticle math,atan2,floor/ceil(SSE4.1),(int)float(SSE3),stricmp(FxParticlesSSE,FastAtan2SSE,FloorSSE4,FtolSSE3,FastStricmpSSE)- Disables legacy 2004 PS2 CPU software occlusion (
OcclusionOff), expands streaming RAM pool up to 3.5 GB with automatic LAA check (StreamMemBoost), O(1) model and TXD name lookup tables with FLA support (ModelNameLookup,TxdNameLookup), disables Rockstar debug QPC timers (DebugTimerOff) - Smart Windows message pump with instant
GetInputStatewakeup (MessagePumpFix), high-polling mouse fix (HighPollingMouseFix),SetCursorPosthrottling (CursorCenterFix), batched radar rendering (RadarBatch), vehicle env-map cache (EnvMapCache), distant vehicle LODs and draw distance (VehicleLod,DrawDistance,PedDrawDistance)
- Ray, sphere, triangle, box, and camera line collisions rewritten in SSE2 (
- SA-MP (all 6 versions: 0.3.7 R1-R5 and 0.3.DL-R1):
- Bit-exact
ID3DXFont::DrawTextlayout cache and material font reuse (TextCache,MaterialFontCache) - Batched overhead HP/armor bars in 1
DrawPrimitiveUPper frame (HealthBarBatch), targeted UI StateBlock replacingD3DSBT_ALL(SampStateBlockFix), lazy nametagBegin/End(PlayerTagState) - Fast
CObjectPool::DrawLastwithout 8 KB stack zeroing or O(N^2) bubble sort (ObjectDrawLastFast), branchless SSE2 material-text scan (ObjectMatTextFast), off-screen object and gang zone culling (SampObjectCull,GangZoneCull) - Nametag LOS raycast cache (
NametagLOSCache), object & accessory lookup caches (ObjectFindCache,AccessoryFindCache),VirtualProtectcache (UnprotectCache), F1/F5/F10 key poll cache (SampKeyPollCache), removal of main-threadSleep(1)model waits (SampModelWait)
- Bit-exact
- Arizona RP (auto-detected and shown in the "Arizona" tab only on Arizona RP launcher builds):
- Lock-free MinGW SJLJ TLS fast path (
ArizonaSjljTlsFast),GetModuleHandleAandGetFileAttributesAcaches (ArizonaModuleHandleCache,ArizonaFileAttrCache),_chat.asi3D-text/nametag LOS cache (ArizonaChatLosCache), O(1)libPED::findPedcache inlibcef.asi(ArizonaCefPedCache) — all resolved via signatures/exports without hardcoded offsets.
- Lock-free MinGW SJLJ TLS fast path (
- Third-Party Mod Compatibility:
SAMPFUNCSdraw-call bypass (SampfuncsDrawFast), dead loop removal inSilentPatchSACObject::Render(SilentPatchObjectFix),VirtualProtectcaching forMoonLoaderand ASI plugins (LuaMemProtectCache,AsiMemProtectCache), BASS audioSleep(1)offload (AudioSleepFix),RealSkyboxdisk log suppression (SkyboxLogOff).
Built-in Profilers
- Lua Profiler (
LuaProfiler) — measures frame-time share per MoonLoader script plus 1 ms LuaJIT line-level sampling with inline source view. - GTA & SA-MP Profiler (
SampProfiler) — hierarchical call-tree timing (inclusive/self % and calls/sec) acrossgta_sa.exeandsamp.dllfunctions and CLEO/SCM opcodes. - Stutter & Input Lag Profiler (
SpikeProfiler) — breaks down frame spikes into CPU / Wait / Present, tracks streamed model KB, page faults, main-thread call stacks, and input-to-Present latency.
Building from Source
Requires Visual Studio 2022 (C++ x86 build tools):
build.bat
Output binary: build\ModernFpsBoost.asi.
Links
- Companion D3D11 Renderer & Graphics Pipeline: ModernDisplay — native D3D9->D3D11 DXGI Flip Model, NVIDIA Reflex, Hi-Z culling, and Trilogy visual pipeline (pairs directly with ModernFpsBoost)
- Discord (bugs & feedback): https://discord.gg/zXYwGDajBh
- Telegram: https://t.me/softik_inquisitor
- YouTube: https://www.youtube.com/@softikq
(c) 2026 Softik Inquisitor. All rights reserved.
arizona-rpasi-plugincppdirectx9fps-boostgame-moddinggta-sagta-san-andreasgtasaluajitmoonloaderopen-mpoptimizationperformanceprofilerrenderwarereverse-engineeringsampsimdsse2
This page is built from what GitHub publishes about the repository. samp.directory does not host the code. Report a problem with this listing