samp.directory
← Scripts y librerías

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

Plugin★ 7actualizado ayerOtherC
Abrir en GitHub
Probar en el compilador de Pawn →

Añade sus archivos include, con las librerías de las que depende, al compilador de Pawn de tu navegador, listos para incluirlos en un 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

Installation

  1. Drop ModernFpsBoost.asi into your GTA:SA root folder (next to gta_sa.exe).
  2. ModernFpsBoost.ini is generated automatically on first launch.
  3. To switch everything to English (menu + .ini comments), set english=1 under [Language] at the very top of ModernFpsBoost.ini (or toggle Language -> English in the F10 -> Settings tab). On next launch, .ini comments rewrite to English automatically while preserving all your settings.
  4. 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 full OpenSAA / LimitAdjuster / 0.3.DL compatibility
    • RenderWare & CMatrix math, camera frustum culling, ped skinning, and skeleton animation blending in SSE2 (MatrixSSE, CMatrixSSE, FrustumSSE, AnimMathSSE, AnimBlendSSE, FrameSyncFast, SkinMatrixSSE)
    • Fx_c particle 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 GetInputState wakeup (MessagePumpFix), high-polling mouse fix (HighPollingMouseFix), SetCursorPos throttling (CursorCenterFix), batched radar rendering (RadarBatch), vehicle env-map cache (EnvMapCache), distant vehicle LODs and draw distance (VehicleLod, DrawDistance, PedDrawDistance)
  • SA-MP (all 6 versions: 0.3.7 R1-R5 and 0.3.DL-R1):
    • Bit-exact ID3DXFont::DrawText layout cache and material font reuse (TextCache, MaterialFontCache)
    • Batched overhead HP/armor bars in 1 DrawPrimitiveUP per frame (HealthBarBatch), targeted UI StateBlock replacing D3DSBT_ALL (SampStateBlockFix), lazy nametag Begin/End (PlayerTagState)
    • Fast CObjectPool::DrawLast without 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), VirtualProtect cache (UnprotectCache), F1/F5/F10 key poll cache (SampKeyPollCache), removal of main-thread Sleep(1) model waits (SampModelWait)
  • Arizona RP (auto-detected and shown in the "Arizona" tab only on Arizona RP launcher builds):
    • Lock-free MinGW SJLJ TLS fast path (ArizonaSjljTlsFast), GetModuleHandleA and GetFileAttributesA caches (ArizonaModuleHandleCache, ArizonaFileAttrCache), _chat.asi 3D-text/nametag LOS cache (ArizonaChatLosCache), O(1) libPED::findPed cache in libcef.asi (ArizonaCefPedCache) — all resolved via signatures/exports without hardcoded offsets.
  • Third-Party Mod Compatibility:
    • SAMPFUNCS draw-call bypass (SampfuncsDrawFast), dead loop removal in SilentPatchSA CObject::Render (SilentPatchObjectFix), VirtualProtect caching for MoonLoader and ASI plugins (LuaMemProtectCache, AsiMemProtectCache), BASS audio Sleep(1) offload (AudioSleepFix), RealSkybox disk 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) across gta_sa.exe and samp.dll functions 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


(c) 2026 Softik Inquisitor. All rights reserved.

arizona-rpasi-plugincppdirectx9fps-boostgame-moddinggta-sagta-san-andreasgtasaluajitmoonloaderopen-mpoptimizationperformanceprofilerrenderwarereverse-engineeringsampsimdsse2

Esta página se genera con lo que GitHub publica sobre el repositorio. samp.directory no aloja el código. Informar de un problema con esta ficha

xKumorio/ModernFpsBoost: Plugin de SA-MP | samp.directory