Engine & DB Tuning
OneSync Infinity Entity Culling & Elimination of 50ms Hitches
Understand why FXServer logs server thread hitch warnings above 50 ms and how OneSync Infinity scoping bounds CPU and network load.
< 25 ms Tick Target · 50 ms Hitch Ceiling · Scope-Filtered Events
Inside the FXServer Main Simulation Loop
Every FXServer server frame runs script ticks, OneSync entity sync packets, and callback resolutions sequentially on the main loop. Whenever a single script or stolen CPU slice blocks execution beyond 50 ms, players experience rubberbanding and voice cutouts.
Dedicated Cores + Scope-Filtered Sync
Set onesync on and onesync_enableInfinity 1 in server.cfg, then audit scripts with resmon to replace global broadcasts with targeted proximity or routing-bucket triggers.
Measured Thresholds & Server Configuration
| Slot Count | Expected Tick Time | Primary Hitch Trigger |
|---|---|---|
| 128 Slots | 8 - 12 ms | Unthrottled Citizen.Wait(0) loops |
| 256 Slots | 14 - 20 ms | Global -1 TriggerClientEvent storms |
| 512 Slots | 22 - 28 ms | Hypervisor steal + unindexed SQL |