nowfound

Dev tools · June 9, 2024

IM

I made a Web shooter in C++ with no engine. Fully deterministic netcode

GitHub: https://github.com/TeamHypersomnia/Hypersomnia - The netcode relies on full simulation determinism - this includes Box2D physics. I'm using standard floating-point calculations and rely on IEEE754 compliance. I also use STREFLOP for portable math function implementations. This is commonly done for RTS games with a lot of synchronized units, however this technique is rarely if ever seen in games with complex physics, esp. shooters. - The atlas packer I wrote for the game was reused in Assassin's Creed, Skydio and received 2 scientific references:…

In plain words

Hypersomnia is a web-based multiplayer shooter built in C++ without a game engine, featuring fully deterministic netcode that synchronizes complex Box2D physics across all clients using IEEE754-compliant floating-point math. Players compete in ranked matches through browser or native clients on Windows, Linux, and macOS, with matchmaking based on the OpenSkill rating system. The project includes rectpack2D, a texture atlas packing tool that has been adopted in commercial games and academic research.

written from the facts on this page · September 2026

From the sources

In the maker’s words, at launch

GitHub: https://github.com/TeamHypersomnia/Hypersomnia - The netcode relies on full simulation determinism - this includes Box2D physics. I'm using standard floating-point calculations and rely on IEEE754 compliance. I also use STREFLOP for portable math function implementations. This is commonly done for RTS games with a lot of synchronized units, however this technique is rarely if ever seen in games with complex physics, esp. shooters. - The atlas packer I wrote for the game was reused in Assassin's Creed, Skydio and received 2 scientific references: https://github.com/TeamHypersomnia/rectpack2D - You can play ranked matches in the browser after signing in with Discord. Your MMR is based on the OpenSkill library. - Browser clients and native clients (Windows, Linux, MacOS) can play on the same servers thanks to libdatachannel and datachannel-wasm. Host a server from your browser and connect from the Steam version, or vice versa. - I use LLVM to build it for all platforms: Windows, Linux, MacOS. I use Emscripten to compile it to WebAssembly. - There were significant challenges in making Box2D suitable for this, e.g. it comes without operator= so I had to implement complete cloning of the physical world for when I have to roll back the predicted world to reconcile it with the server state. Note it's not enough to just recreate the b2World from velocities and positions - you have to clone all contacts, generated trees, and all cached state so that the order of subsequent operations stays identical. Read more about the interesting tech aspects of the game here: https://github.com/TeamHypersomnia/Hypersomnia#tech-highligh...

More dev tools this month

the category →
  • Dograh592

    The open source VAPI alternative

    Dev tools · 25d ago · dograh.com

  • Meridian530

    Don't let your work go unnoticed. Get promoted!

    Dev tools · 20d ago · meridiona.com

  • x1516

    Lovable for iPhone apps go from idea to App Store

    Dev tools · 11d ago · x1.new

  • Open-source GTM skills for technical founders

    Dev tools · 29d ago · gtmcofounder.com

  • OpenTrailPaper is open-source bike computer firmware for the LilyGO T5S3 4.7" E-Paper PRO. It supports offline maps, GPX routes, FIT recording and Bluetooth sensors.

    Dev tools · 2d ago · opentrailpaper.com

  • Nuphos380

    The AI-Native DevOps Workspace.

    Dev tools · 24d ago · nuphos.ai

Launched alongside, June 2024

the whole month →
  • Pygma1,409

    AI copilot for Instagram

    AI · 2024 · pygma.me

  • Cello1,347

    Easiest way to add a referral program to your SaaS

    Growth · 2024 · cello.so

  • Create personalized, multi-channel conversations at scale

    AI · 2024 · lagrowthmachine.com

  • FlowMapp 3.01,147

    Visual website planning in the most powerful way

    Work · 2024 · flowmapp.com

  • Revolutionary AI email, reimagined for teams

    AI · 2024 · superhuman.com

  • PyjamaHR1,132

    Hiring on autopilot. The AI applicant tracking system (ATS).

    Work · 2024 · pyjamahr.com