finds.dev← search

// the find

PeterAlanAnderson/rollbackTest

C · updated Aug 2021

An exercise in learning rollback netcode in C++

An exercise repo for learning rollback netcode, the technique fighting games use to hide latency by predicting remote inputs and re-simulating frames when a prediction turns out wrong. It suits a developer who wants to see the idea in a small OpenGL 3.3 program rather than only read about it. The listing is cut off before any netcode source appears, so this review covers the layout and dependencies, not the rollback logic.

Dependencies are vendored in the repo (glm, glad, the KHR headers), so it builds without a package manager and the versions are whatever was committed. The graphics side is one vertex and one fragment shader, which keeps the rendering small enough that the netcode is what a reader will focus on. Rollback is a good subject for an exercise because it forces deterministic simulation, input prediction, and state save and restore to be explicit.

Most of the visible tree is vendored glm, well over a hundred headers, which buries whatever the project's own code is. The language field says C, the description says C++, and glm is C++ header-only, so the project's language is unclear from the listing. The listing looks alphabetical and stops inside include/glm, so any root-level source file or README would sort after the cutoff and is not visible here. The last push was August 2021 and the repo has no stars, so treat it as a reference to read, not code to depend on.

View on GitHub →

// want more like this?

We dig through GitHub every week and send a few repos picked for what you actually care about — each with an honest take like this one.

Get finds in your inbox → Search again →