{"id":29313084,"url":"https://github.com/heatxd/gekkonet","last_synced_at":"2026-02-13T16:20:28.885Z","repository":{"id":235044900,"uuid":"789959783","full_name":"HeatXD/GekkoNet","owner":"HeatXD","description":"P2P Rollback Game Networking SDK","archived":false,"fork":false,"pushed_at":"2025-07-02T09:29:59.000Z","size":5805,"stargazers_count":12,"open_issues_count":6,"forks_count":1,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-07-02T10:34:54.494Z","etag":null,"topics":["c","cpp","game-development","library","netcode","networking","rollback-netcode","sdk"],"latest_commit_sha":null,"homepage":"https://heatxd.github.io/GekkoNet/","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-2-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/HeatXD.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-04-22T02:00:56.000Z","updated_at":"2025-07-02T09:28:19.000Z","dependencies_parsed_at":"2024-04-23T05:14:46.136Z","dependency_job_id":"9b67e153-42cd-4b61-8e4b-13d1bc863815","html_url":"https://github.com/HeatXD/GekkoNet","commit_stats":null,"previous_names":["heatxd/gekkonet"],"tags_count":19,"template":false,"template_full_name":null,"purl":"pkg:github/HeatXD/GekkoNet","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeatXD%2FGekkoNet","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeatXD%2FGekkoNet/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeatXD%2FGekkoNet/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeatXD%2FGekkoNet/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/HeatXD","download_url":"https://codeload.github.com/HeatXD/GekkoNet/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/HeatXD%2FGekkoNet/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264050890,"owners_count":23549762,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","cpp","game-development","library","netcode","networking","rollback-netcode","sdk"],"created_at":"2025-07-07T09:30:41.514Z","updated_at":"2026-02-13T16:20:28.875Z","avatar_url":"https://github.com/HeatXD.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cimg src=\"docs/images/gekko_logo-cropped.svg\" width=\"100%\"\u003e\n\n# GekkoNet\n### C/C++ Peer To Peer Game Networking SDK\nTraditional online networking techniques account for transmission delays by adding input lag, often resulting in a slow feeling, unresponsive feel. GekkoNet leverages rollback networking with input prediction and speculative execution, allowing player inputs to be processed immediately, creating a seamless, low-latency experience. This means that players enjoy consistent timing, reaction speeds, and muscle memory both online and offline, without the impact of added network lag. Inspired by [GGPO](https://github.com/pond3r/ggpo) and [GGRS](https://github.com/gschup/ggrs)\n\n## Why?\nI built this because I wanted a SDK to plug into my C++ projects, in the past I have created a wrapper around GGRS for C++ but after having to deal with Rust FFI I decided to build a native alternative instead to more easily fit my projects. \nGekkoNet is heavily inspired by the [GGPO](https://github.com/pond3r/ggpo) Rust reimplementation [GGRS](https://github.com/gschup/ggrs).\n\n#### Why not use GGPO?\nI am personally not a big fan of the callback based approach of GGPO hence why I am more of fond of how GGRS handles its control flow. And I might be addicted to reinventing the wheel, this has mostly been a learning experience of mine to learn more about async systems and networking in general :)\n\n## Project Goals\n### Done\n- Local/Couch Sessions\n\t- Per Player Input Delay Settings\n- Online Sessions\n\t- Local Player Input Delay Settings\n\t- Remote Player Input Prediction Settings\n- Spectator Sessions\n\t- Spectator Delay Settings.\n- Stress Sessions\n    - To help find desyncs it your local state, This is a local session which constantly rolls the simulation back over a user-specified check distance.\n- Limited Saving \n\t- Save the gamestate less often which might help games where saving the game is expensive. This is at the cost of more iterations advancing the gamestate during rollback.\n- Abstracted socket manager.\n- Event System for notifications for eg. specific players being done with syncing.\n- Desync Detection (Only when limited saving is disabled for now)\n- Automated builds\n\n### Work in progress\n- Network Statistics\n- Joining a session that's already in progress as a spectator (and maybe as a player later)\n\n### Maybe Later\n- Replays\n- Game engine plugins\n\n## Getting Started\n### Docs\n- Automatically generated Docs: https://heatxd.github.io/GekkoNet/\n- Also look at the examples to see how GekkoNet functions!\n\n## Building Examples\n- The examples are built and ran using Visual Studio 2022\n- The examples require SDL3 to function\n  \n## Building GekkoLib\n### Prerequisites\nTo build GekkoNet, make sure you have the following installed:\n\n1. **CMake** (version 3.15 or higher)\n2. **C++ Compiler**:\n   - **GCC** or **Clang** (Linux/macOS)\n   - **MSVC** (Visual Studio) for Windows\n3. **Doxygen** (optional, for documentation generation if `BUILD_DOCS` is enabled)\n\n### Step-by-Step Instructions\n\n### 1. Clone the Repository\nFirst, clone the GekkoNet repository:\n\n```sh\ngit clone https://github.com/HeatXD/GekkoNet.git\ncd GekkoNet/GekkoLib\n```\n\n#### 2. Configure Build Options\nGekkoNet includes several options to customize the build:\n\n- `BUILD_SHARED_LIBS`: Set to `ON` to build shared libraries, or `OFF` for static libraries (default).\n- `NO_ASIO_BUILD`: Set to `ON` if you do not need ASIO.\n- `BUILD_DOCS`: Set to `ON` if you want to generate documentation using Doxygen (requires Doxygen installed).\n\nTo configure these options, use `cmake` with `-D` flags. For example:\n\n```sh\ncmake -S . -B build -DBUILD_SHARED_LIBS=ON -DNO_ASIO_BUILD=OFF -DBUILD_DOCS=OFF\n```\n\n### 3. Generate Build Files\nRun CMake to configure the build and generate files:\n\n```sh\ncmake -S . -B build\n```\n\n#### 4. Build the Project\nOnce configured, build the project using the following command:\n\n```sh\ncmake --build build\n```\n\nOn successful completion, binaries and libraries will be located in the `out` directory within the project.\n\n#### 5. (Optional) Build Documentation\nIf you set `BUILD_DOCS=ON`, generate the documentation as follows:\n\n```sh\ncmake --build build --target docs\n```\n\nDocumentation will be available in the `build/docs` directory as HTML files.\n\n### Build Output\n- **Library**: Located in `out/`, with shared/static suffixes depending on build options.\n- **Documentation** (if built): Available in `build/docs/`.\n\n---\n\n## Projects using GekkoNet\n- 3sx - Street Fighter 3rd Strike PC port\n    - https://github.com/crowded-street/3sx\n- Klawiatura - Mario Forever with rollback netcode.\n    - https://github.com/toggins/Klawiatura\n- bsnes netplay\n    - https://github.com/HeatXD/bsnes-netplay \n\n\nIf you have a project using GekkoNet please let me know!\n\n## License\nGekkoNet is licensed under the BSD-2-Clause license\n[Read about it here](https://opensource.org/license/bsd-2-clause).\n\nThe GekkoNet logo is made by the amazing [NoisyChain](https://github.com/NoisyChain)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheatxd%2Fgekkonet","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fheatxd%2Fgekkonet","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fheatxd%2Fgekkonet/lists"}