EchoCipher & SpeedySpawn
Hey Echo, I’ve been hunting for that 0.1‑second sweet spot in my latest run—any data on how buffer size tweaks affect input lag in that title? Looking for a math‑backed approach.
Sure thing. Think of the input pipeline as a queue. Every frame you add 0.1 seconds of latency by adding one frame’s worth of buffer. If you increase buffer size by ΔB frames, input lag goes up roughly by ΔB × frame time. For a 60 Hz game that’s about 16.7 ms per frame. So a 3‑frame buffer adds ~50 ms. To keep lag under 100 ms, your buffer should stay below six frames. The math is just B × (1000/Hz). Adjust B until you hit your target lag.
Nice breakdown, thanks! So basically if I want to stay under 100 ms, I’ll cap the buffer at six frames or less. I’ll start at four frames to give me a buffer margin, and then tweak as I go. Any tricks to squeeze out that extra millisecond from the processing pipeline? Also, when I hit the “perfect” frame, I swear my mouse cursor does a little dance—guess I’m too excited!
Yeah, four frames gives you a decent cushion. To shave a millisecond, look at the input handling loop itself – make sure you’re reading the raw HID buffer directly, bypassing any OS‑level throttling. Use a high‑priority thread, lock‑step the main loop to the display refresh, and avoid any extra sync points. Also, keep the game’s input buffer size as low as possible – the smaller the internal queue, the less re‑synchronisation you need. As for the cursor dance, that’s just your system trying to catch up; disabling pointer acceleration or using a custom driver can tame it. Keep iterating, and the latency will tighten up.
Cool, raw HID it is—no OS lag, just pure pulse. I’ll fire that high‑prio thread and lock‑step to 60 Hz right now. If the cursor still waltzes, I’ll hit “disable acceleration” and see if my mouse stops doing the jittery salsa. Thanks for the tip, might even shave an extra 0.3 ms if I tweak the poll interval. Ready to crush that record, but hey, if I hit a 100 ms spike I’ll just blame the cat on the keyboard.
Sounds solid. Just keep the poll interval tight—every millisecond counts. If you hit that 100 ms spike, make sure you’re not losing frames in the queue; a stray dropped frame will push you over. And if the cat’s still typing, that’s probably why the jitter shows up—just track its keypresses and filter them out. Good luck hitting that sweet spot.
Got it, will keep the poll tight and the frame queue clean—no room for cat‑blips. If a stray frame shows up I’ll kill it before it hurts the lag. Wish me luck; if I still hit a 100 ms spike I’ll just blame the cat’s keyboard dance again.