🎯 Lag compensation
Proper, modern lag compensation for Joint Ops. Players hit what they see on their screen, the same way today's shooters do it. It goes into your running server from WolfRAT: retail or TAC, no onHook, no exe change, and players download nothing.
New in WolfRAT 2.10.34: knife stabs and crew mates. A lagged player's knife stab now counts when it reached someone on his screen (see Knife), and people riding in the shooter's own vehicle are never rewound, so a door gunner's bullets no longer land on his own passengers. The old Best rewind figures and the Use suggested button are gone from the page.
2.10.28: auto-tune per player. Each player gets their own setting, learned from their own shots (see Auto-tune per player). Claymore shrapnel is never rewound, and !mycomp only gives a number when it means something.
Since 2.10.24 it covers everyone: low-ping players are compensated too, bots (AI) are rewound, and the recommended settings are set for you once (see Recommended settings). You'll find it on the Server tab, on the 🎯 Lag compensation page. It has been running live on the FMJ UK server since 2.9.7, with players from the UK, the US, Venezuela and China.
Why Joint Ops needs it
In Joint Ops the server decides every hit, and it checks each bullet against where people are on the server right now. A player on 200 ping sees everyone a fifth of a second in the past. When they aim straight at a running man and fire, the server says he has already moved on, and the shot misses. That is why high-ping players have always had to lead their targets, guessing how far ahead to aim, and why the game never felt fair from the other side of the world.
What it does
The server now remembers where every player and bot was for the last second. When a player fires, the bullet is checked against where the target was on that player's screen when they pulled the trigger, not where the target is on the server now.
Shoot what you see, and it counts. No more leading.
This is the method modern shooters use, known as server-side rewind. Counter-Strike and Valve's other games work this way. Joint Ops came out in 2004 without it. This is a fresh build for JO's own engine, written from how the game really checks its bullets, not a ping equaliser or a delay added on top.
Does it really help? The numbers
Every shot from a rewound player is checked twice: once with the rewind and once the old way. That gives a straight answer to "would that shot have hit without it?". These are real nights on the FMJ UK server:
| Night | Hits with it | Hits the old way | Gain |
|---|---|---|---|
| Thursday 15 October (Hamshop, elk road, A-99, Oscar, Angel and more, pings up to 280+) | 1,201 | 1,003 | +20% |
| Saturday 17 October (fewer high pings that night) | 511 | 474 | +8% |
| Friday 30 October (5 hours, 4,352 close shots) | 3,045 | 2,576 | +18% |
| Saturday 31 October (19 players peak, auto-tune live) | 4,305 | 4,016 | +7% (lost hits cut by 63%) |
| Friday 20 November (4½ hours, 11 players peak, everyone compensated, dead bodies no longer counted) | 4,104 | 3,649 | +12% |
Only shots from players over the minimum ping are counted. The more lag your players have, the more it gives them. The players could feel it too. On Thursday night they told us they didn't need to lead any more.
On the 20 November night, with every player compensated, the gain by the shooter's ping was:
| Shooter's ping | Hits with it | Hits the old way | Gain |
|---|---|---|---|
| Under 50 | 1,743 | 1,621 | +8% |
| 50-79 (four players, few shots) | 299 | 347 | -14% |
| 100-149 | 1,540 | 1,274 | +21% |
| 150-199 | 522 | 407 | +28% |
Low-ping players were not hit more for it either: bullets that came close to an under-50 player hit about 10% more often than plain Joint Ops would have allowed, against 12 to 19% for everyone else. The 50-79 row is nearly all one player on one map and too small to judge; we are watching it.
What it never does
- It never slows anyone down or adds lag. Nobody's game is held back for anyone else.
- Low-ping players lose nothing. From 2.10.24 everyone is compensated to start with, so low-ping players stop leading for their own small delay too. If you would rather they had plain Joint Ops hits, set a Minimum ping (it was 80 ms before 2.10.24).
- Walls still stop bullets. Only players and bots are rewound. Buildings, walls, rocks and vehicles stay where they are, so nobody can shoot through cover.
- It never rewinds someone riding with the shooter (from 2.10.34). A passenger in the same helicopter, boat or truck stays where the server has him, so a door gunner's bullets can't land on his own crew mates.
- It never takes a knife stab away (from 2.10.34). A stab plain Joint Ops gives always counts; lag compensation only adds the ones that reached someone on the stabber's screen.
- It never rewinds someone across a respawn or a teleport. If the server can't be sure where a player was, it uses the normal hit.
- It never rewinds anyone for a claymore (from 2.10.28). A claymore goes off by itself and nobody aimed it, so plain Joint Ops decides who its shrapnel hits. Claymore hits are left out of the numbers and shown on a line of their own. (On a server exe where WolfRAT can't tell a claymore apart, the page says so: see If the page says something else.)
- Players download nothing. It all runs on the server.
Players can check their own: !mycomp
From 2.10.14 any player can type !mycomp to see what lag compensation is doing for them. The answer goes to everyone (Joint Ops has no private reply), so it starts with their name:
Name P142 R212 Hits 148 +28 comp (+23%)- ping 142, rewound 212 ms, 148 hits since they joined, and 28 more than plain Joint Ops would have given them (23% more). A minus means it took hits away.Name P142 R212 Hits 48: too few shots yet- under 50 hits a plus or minus is still luck, so there is no number (from 2.10.28).Name P142 R212 Hits 105: about even with plain JO- the difference is so small that luck alone could explain it, so there is no number (from 2.10.28). The page on the PC still shows the exact numbers.Name P45 No comp needed (under 80)- only on a server with a Minimum ping set: their ping is under it and none of their shots were rewound, so they play plain Joint Ops. A player near the minimum who was rewound for part of the session gets their numbers (2.10.24).Lag comp is off on this server- it isn't switched on.
The counts start when the player joins (or changes name) and when the counters restart (switching it on, changing a setting, or Reset); a map change doesn't clear them. Each player can ask once every 30 seconds. Long names are cut short to fit the chat line; the numbers always stay whole.
Switching it on
- Run WolfRAT on the same PC as the game server and connect to it. It has to be the same machine, because WolfRAT puts the lag compensator into the running server.
- Go to the Server tab, then the 🎯 Lag compensation page.
- Tick On. The line underneath turns green and shows the setting in use. Since 2.10.13 it is on by default: updating to 2.10.13 switched it on once for every server, and if you turn it off afterwards it stays off.
A map change keeps it. A server restart or a crash takes it away, so the server is back to normal Joint Ops. To have WolfRAT put it back automatically, tick Put it back on by itself after a server restart. WolfRAT has to be running for that.
If WolfRAT ever can't switch it on, the On box stays ticked: the line underneath says NOT running and why, and WolfRAT tries again until it works: every 5 seconds for the first minute, then every 30 seconds (since 2.10.24; every 30 seconds since 2.10.9). Before that, a failure unticked the box, and the server could quietly run without lag compensation until someone noticed.
It works on retail Joint Ops servers and TAC servers alike. Nothing is written to your game files. Close WolfRAT and the lag compensator keeps running until the server restarts.
Recommended settings (set for you once)
The first time you start 2.10.24, WolfRAT moves your lag compensation settings to the ones we recommend: Minimum ping 0 (everyone), Maximum rewind 300 ms, Auto-tune on Watch, Extra +70 ms. It happens once per install, and the log on the page says what moved.
- Only a setting still on the old starting value moves (Minimum ping 80, Maximum rewind 400, Auto-tune On (apply)). Anything you changed yourself is left alone.
- If you put a value back afterwards, it stays. WolfRAT never moves it again.
- It doesn't matter how many versions you skip: you get it on your first start of 2.10.24 or anything newer.
- Whether lag compensation is on or off is not touched.
2.10.28 adds one more step, done the same way: if Auto-tune was set to On (apply), it moves to Watch once, because Auto-tune now means auto-tune per player and that starts by watching. Off stays Off, and Watch stays Watch.
The settings
| Setting | What it means | Start with |
|---|---|---|
| Extra | How far back the server looks is the player's ping plus this. The player's screen is a little older than their ping alone, because the game also takes time to draw frames and process server ticks. The Extra covers that. With auto-tune per player on On, a player can have their own Extra instead. | 70 ms |
| Auto-tune per player | Learns each player's own Extra from their own shots (2.10.28). Off: every player uses the Extra above. Watch: learns and shows each player's Extra, changes no hits. On: each player gets their own (within limits). See Auto-tune per player. | Watch |
| Minimum ping | Players below this ping aren't rewound at all. 0 means everyone is compensated. | 0 (80 ms before 2.10.24) |
| Maximum rewind | Nobody is rewound further than this, however bad their ping is. | 300 ms (400 before 2.10.24) |
| Knife | How a lagged player's knife stab is judged (2.10.34). On: a stab that reached someone on the stabber's screen counts. Watch: counts what it would change, moves no stab. Off: stabs are plain Joint Ops. See Knife. | On |
| Watch only | Counts everything but changes no hits. Use it on a first night to see what it would do on your server before you switch it on for real. | Off |
For example, a player on 125 ping is checked against where people were 195 ms ago (125 + 70), and a player on 30 ping against 100 ms ago (30 + 70).
Auto-tune per player (2.10.28)
One Extra for the whole server can't suit everyone: one player hits most with a bit more rewind, another with a bit less. So WolfRAT learns each player's own Extra from their own shots.
- Every close shot is also checked with that player's Extra 40 ms lower and 40 ms higher. When one of them keeps hitting where the current Extra misses, the player's Extra moves 20 ms that way. It only moves on clear evidence, and at most once every 150 such shots.
- The limits: down to no rewind at all (that only affects the shooter), and up to 40 ms over the Extra above, never past 250 ms of ping + Extra.
- Watch is where it starts. It learns and shows each player's Extra in the Own Extra column of the players table, without changing a hit.
- On uses it. A player takes their new value when they die, or after 2 minutes.
- Off learns nothing, and everyone uses the Extra above.
- Players are remembered by name from one night to the next. A player back after two weeks away, or whose ping has moved by 50 ms, keeps half of what was learned.
- In the Own Extra column, server means the Extra above, (watch) means learned but only shown, (waiting) means a new value starts at their next death (or after 2 minutes), and locked means you gave them the server's value. Hover over the cell to see why.
- Right-click a player to give them the server's value, let auto-tune learn them again, or forget what it learned.
- The page lists the players who differ from the server's value, anyone sitting at the top limit for 30 minutes or more, and anyone locked. Every move goes in the live activity log.
- Switching the mode does not restart the session numbers.
The old auto-tune for the whole server (one Extra for everyone, from the last 450 close shots) is gone, and from 2.10.34 so are the Best rewind figures and the Use suggested button. To check your Extra, use the What if table below.
Knife (2.10.34)
A knife stab used to be judged like a bullet without lag compensation: the server checked it against where people are now, so a lagged player could stab a runner on his screen and get nothing. Now a stab is checked the same way as a shot.
2.10.35: in 2.10.34 the knife part never switched on. 2.10.35 fixes that. The new lag compensator is loaded the next time the server starts, or when you tick the lag compensation box again.
- If plain Joint Ops gives the stab, it counts, and nothing is changed.
- If it doesn't, the stab counts when it reached someone where the stabber saw him. Of several people there, the one nearest where he was facing.
- It is held back if the moved stab would catch someone the stabber didn't see. Teams, walls and spawn protection are still decided by the game.
- Start with On. Watch counts what it would change without moving a stab, and Off leaves the knife as plain Joint Ops. The medic pack is not touched.
- The page shows a Knife line under the totals: stabs from rewound players, how many hit anyway and how many counted only with lag compensation.
The live numbers
The page shows how it's doing as you play, refreshed every second:
- This session: hits counted with it, hits the old way would have given, and the gain. Saved is the hits only the rewind gave. Cost is the shots that would have hit before but missed with the rewind. Those come from a target who ducked, turned or went prone in that split second, because their pose isn't rewound, only their position. On our nights, Saved has been well ahead of Cost.
- Players: everyone on the server with their ping, how far they are rewound, their Own Extra (see Auto-tune per player), their bullet checks and their hits with and without it.
- Checks: the server doesn't judge a bullet once when it's fired. It moves every bullet a short way each tick, about 60 times a second, and checks that bit of its path against everyone until it hits something or runs out. Each of those is a check. One bullet that flies for a second adds about 60, and a full magazine can add a few thousand. So a busy player showing tens of thousands of checks is normal. It isn't the number of shots they fired.
- Knife (2.10.34): stabs from rewound players, how many hit anyway and how many counted only with lag compensation. See Knife.
- Riding with the shooter (2.10.34): checks against the shooter's own crew mates that were left alone, and the hits kept off them.
- Being shot at – by the target's ping: splits every close shot and hit by the target's ping (under 80, 80–149 and 150+ ms) and per player, for both low-ping shooters (plain JO) and rewound shooters (with lag compensation vs Plain JO %). Dead bodies and claymore shrapnel are left out.
- Bots (AI) (2.10.24): bots are rewound like players, so co-op servers get lag compensation too. They have their own row, apart from the human players. This part is new and has had little play on our own server, so tell us how it feels on yours.
- Dead bodies (2.10.24): a bullet that hits a dead body is no longer counted as a hit, and bodies are not rewound. The page shows them apart as Dead bodies hit.
- Claymore shrapnel (2.10.28): its checks and hits, on a line of their own under the session totals. Claymores are plain Joint Ops, so they are not in the other numbers.
- What if (2.10.24): how many hits the same bullets would have scored at other rewinds (plain Joint Ops, then ping -80 up to ping +160), by the shooter's ping. It only counts; no hit is changed. It is the straight answer to "is my Extra right?".
- Live activity & auto-tune log: a timestamped log of every auto-tune move, every setting change and a snapshot every 30 seconds while people are playing (none while the server is empty, from 2.10.34) right on the page (with a Copy log button) and saved to
wolfrat_lag_comp_events.logand.jsonl. - Start counting again sets the numbers back to zero and counts from that moment. The page says "Counting started again at" and the time. The button is greyed out until lag compensation is in the server.
- Past sessions: every session is saved, so you can compare nights and settings. Changing a manual setting starts a new row.
An empty server doesn't run it. The page says "Waiting for players" until someone joins.
If the page says something else
| It says | What to do |
|---|---|
| Needs WolfRAT on the same PC as the game server | Run WolfRAT on the server PC and connect to the server on the Server connection page. |
| Waiting for write access to the server | Run WolfRAT as administrator. |
| Something else already changes the game's hit code | Your server already has lag compensation from somewhere else, such as the onHook DLL's own LagCompEnabled setting. WolfRAT leaves it alone, so use one or the other. |
| On, from another WolfRAT version | WolfRAT was updated while the server kept running. It moves lag compensation to this version by itself and the numbers start again. If it doesn't, tick the box. |
| On, run by another WolfRAT that is open now | A second WolfRAT is connected to this server and is running it. This one leaves it alone. Close the other one, or tick the box here to take it over. |
| Auto-tune per player ... needs lag compensation helper version 6 | The server still runs the lag compensator from an older WolfRAT, so every player uses the Extra above. Tick the box again to load the new one. |
| Knife: not available on this server / Riding with the shooter: not available on this server | WolfRAT didn't find what it needs for that part in your server's exe, so stabs stay plain Joint Ops (or crew mates are rewound like anyone else, as before 2.10.34). Everything else works as normal. |
| Knife: needs a newer lag compensation helper | The server still runs the lag compensator from an older WolfRAT. Tick the box again to load the new one. |
| On this server exe claymores cannot be told apart and are still rewound | Your server's exe is one where WolfRAT can't spot a claymore's shrapnel, so claymores are rewound like any shot, as before 2.10.28. Everything else works as normal. |