C++ game-dev

Open-source C++ projects categorized as game-dev

Top 14 C++ game-dev Projects

  • entt

    Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more

  • Project mention: Using Jolt with flecs & Dear ImGui: Game Physics Introspection | dev.to | 2024-04-17

    EnTT is a popular alternative to flecs for C++, which has different performance/memory characteristics.

  • Recast/Detour

    Industry-standard navigation-mesh toolset for games

  • InfluxDB

    Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.

    InfluxDB logo
  • Unreal-Engine-Guide

    Unreal Engine 5 Guide. Learn to develop games for Windows, Linux, macOS, iOS, Android, Xbox Series X|S, PlayStation 5, Nintendo Switch.

  • StratusGFX

    Realtime 3D rendering engine

  • Project mention: Show HN: Realtime Global Illumination on Older Hardware [video] | news.ycombinator.com | 2023-07-24

    Hi everyone,

    A few months ago I posted here on HN about my open source 3D rendering engine. Since then I've been working on the new version which implements additional modern graphics techniques while still running on older GTX 10 series hardware.

    This includes emission mapping, FXAA+TAA, better mesh LOD generation and selection, but the biggest one was an overhaul of the global illumination system.

    The global illumination overhaul was the biggest aspect of the new release. The goal was better visuals than the previous version while maintaining equal performance. I wanted to outline how it works and what I had to do to make it work.

    = How It Works =

    * Direct lighting: Handled using standard rasterization pipeline with cascaded shadow mapping

    * 2nd bounce of light: Approximated by a set of virtual point lights

    * 3rd bounce of light: Not directly simulated but shadows are tapered to prevent harsh cutoff. VPLs can also be placed in open spaces to help spread light where it wouldn't be able to go without a true 3rd bounce.

    * Adaptive sampling: maximum of 4200 virtual lights per frame are selected. Each pixel computes lighting using between 1 and 10 random samples based on object's distance to camera and whether or not the lighting history was recently discarded for that pixel (recently discarded = temporarily sample more heavily).

    * Spatial resampling: each pixel can look at a few of its neighbors each frame. If the neighbor is a good fit it will merge that neighbor's samples into its own to increase the effective sample count.

    * Denoise and temporal accumulation: 2 level wavelet denoiser combined with temporal accumulation to get rid of most noise and stabilize the image even when in motion.

    = Maintaining Performance =

    There are a few key ways that this version is able to both look better yet have the same performance as the previous version on the same hardware.

    1) Reuse as much data as possible between frames. This is where the temporal accumulation aspect comes into play.

    2) VPLs are updated slowly over many frames to prevent any single frame from halting the system.

    3) With thousands of VPLs per frame, they can't all be factored in for each pixel. It's too much work. The approach was to instead sample from the set of VPLs randomly, reuse as much data spatially as possible, denoise the result and temporally accumulate 1 second worth of frames.

    I'm very happy with the results! Roughly the same performance as the previous version but better visuals.

    GitHub (open sourced under the MPL-2.0 license): https://github.com/KTStephano/StratusGFX

    Image Showreel: https://ktstephano.github.io/portfolio

    High-Level Tech Breakdown: https://ktstephano.github.io/rendering/stratusgfx/frame_anal...

  • HFSM2

    High-Performance Hierarchical Finite State Machine Framework

  • Project mention: State machine library for portable embedded application (C++11) | /r/embedded | 2023-06-08
  • supernova

    Game engine for 2D and 3D projects with entity component system (ECS) and data-oriented design

  • Game-Console-Dev-Guide

    Game Console Dev Guide. Learn to develop games for Xbox Series X|S, PlayStation 5, Nintendo Switch, Steam Deck, and Apple Silicon. Developing with Unreal Engine 5, Unity, Godot Engine, and Blender.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo

    A Library for Point And Click Adventures (by pinguin999)

  • Project mention: Point and Click Adventure Engine | news.ycombinator.com | 2023-12-20
  • stylized_snake_game

    A cross-platform desktop stylized version of snake game made from scratch in C++/OpenGL.

  • cyubeVR-VoxelAPI-Modding

    This is the official repository for the cyubeVR VoxelAPI, an easy way to programmatically interact with the voxel world in cyubeVR, a VR voxel game available on Steam.

  • dependency_injection_for_games

    Code accompanying the Medium article "Dependency Injection for Games"

  • Project mention: Dependency Injection for Games — Appendix: Dependency Inversion | dev.to | 2023-09-11

    Check out the accompanying GitHub repository, which contains an implementation of the dummy game application.

  • reshimost

    Simple Base Game using OpenGL ES

  • retro-game

    a 2d game made in SFML and c++

  • Project mention: C++ Show and Tell - June 2023 | /r/cpp | 2023-06-01
  • arkanoid

    Simple cross-platform arkanoid game. The build system based on CMake and util scripts supports Android, Windows, and MacOS. Uses SDL. (by skalexey)

  • Project mention: jarkanoid VS arkanoid - a user suggested alternative | libhunt.com/r/jarkanoid | 2023-08-27

    Very simple cross-platform arkanoid game. The build system based on CMake and util scripts supports Android, Windows, and MacOS. Uses SDL.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

C++ game-dev related posts

  • Dxvk now unmaps D3D9 memory, which should fix the out of memory issues with running DX9 games!

    6 projects | /r/linux_gaming | 31 Jul 2022
  • What engine does the game run on?

    1 project | /r/starcitizen | 8 May 2022
  • New World Update 1.0.3: Server Transfer Details

    1 project | /r/newworldgame | 21 Oct 2021
  • Exploiters are ruining the game. Video proof of speed hack. Does anyone have more info about this?

    1 project | /r/newworldgame | 11 Sep 2021
  • Hope the anti cheat is good enough.

    1 project | /r/newworldgame | 14 Aug 2021
  • Is... is new world coming to console players?

    1 project | /r/newworldgame | 1 Aug 2021
  • LumberYard is now a new open source engine

    1 project | /r/starcitizen | 6 Jul 2021
  • A note from our sponsor - SaaSHub
    www.saashub.com | 30 May 2024
    SaaSHub helps you find the best software and product alternatives Learn more →


What are some of the best open-source game-dev projects in C++? This list will help you:

Project Stars
1 entt 9,577
2 Recast/Detour 6,262
3 Unreal-Engine-Guide 928
4 StratusGFX 625
5 HFSM2 443
6 supernova 230
7 Game-Console-Dev-Guide 187
9 stylized_snake_game 38
10 cyubeVR-VoxelAPI-Modding 12
11 dependency_injection_for_games 12
12 reshimost 8
13 retro-game 6
14 arkanoid 0

SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives