Home › Forums › Competitive Esport & Pro Scene › League of Legends & Dota 2 Discussions › GGPO rollback in my homebrew fighter feels super janky even at 5ms ping, what am I doing wrong?
- This topic has 1 reply, 2 voices, and was last updated 1 week, 1 day ago by
Daniel Torres.
-
AuthorPosts
-
November 15, 2026 at 4:02 am #134028
Lucas HowardMemberSo I’ve been building a small 2-player versus fighting game in C++ and decided to bolt on GGPO for the netcode because I wanted it to feel like a real arcade fighter instead of those cursed delay-based games. Ping between my two test machines is basically nothing (5-8ms), but when we actually play, the opponent’s character keeps teleporting mid-combo and there’s this awful stutter whenever they land a hit. It looks way worse than Street Fighter 6 or Guilty Gear, honestly, which makes me think I’m misconfiguring something. I set the rollback points pretty aggressively thinking more rollback = smoother, but it didn’t help.
I’m not super experienced with netcode so I might be missing something fundamental about how rollback is supposed to work. Does the amount of rollback actually matter this much, or is it my game logic? Anyone here run a GGPO integration before and hit the same wall? Would really appreciate knowing what the actual fix is rather than just ‘use a better engine’ because I want to understand where it’s breaking.
"[Motherboard: B650] • [CPU: i7-14700K] • [RAM: 16GB DDR5 5600MHz]"November 15, 2026 at 5:33 pm #134153
Daniel TorresMemberHey everyone. Looking into the technical breakdown and hardware behavior on this — the jank you’re describing is the classic symptom of a non-deterministic simulation, not a rollback count problem. Here’s how GGPO actually works under the hood: it’s a deterministic lockstep system. That means the exact same inputs fed into the exact same game state have to produce the exact same result on every machine, every single frame. GGPO saves rollback points at intervals, runs the opponent’s input ahead by predicting it, and when the real input finally arrives it rewinds to the last rollback point and replays everything with the correct data. That rewind is what you’re seeing as the teleporting — the game had to undo frames because its prediction was wrong.
The reason the prediction keeps going wrong on your build is almost certainly floating-point math or a non-seeded RNG. If your character movement, hitbox checks, or physics use doubles or floats, the two machines can diverge by a single bit and suddenly the simulated states no longer match, triggering constant rollbacks. Same with random number generators — if your RNG isn’t seeded identically on both sides, any frame that reads randomness will diverge. The fix is to lock everything to fixed-point integer math, seed all RNG with a value synced from frame 1, and make sure no code path reads wall-clock time, memory addresses, or thread scheduling. Then dial your rollback points back to something like every 30-60 frames — too many points actually makes the rollbacks longer and more visible, not shorter. Once your sim is truly deterministic you’ll barely notice the rollbacks even at higher ping, which is the whole point of the system.
"Competitive PC enthusiast." -
AuthorPosts
- You must be logged in to reply to this topic.