entt VS magnum

Compare entt vs magnum and see what are their differences.

Our great sponsors
  • InfluxDB - Power Real-Time Data Analytics at Scale
  • WorkOS - The modern identity platform for B2B SaaS
  • SaaSHub - Software Alternatives and Reviews
entt magnum
78 22
9,351 4,634
- -
9.8 9.7
7 days ago 7 days ago
C++ C++
MIT License GNU General Public License v3.0 or later
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.

entt

Posts with mentions or reviews of entt. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2023-09-02.
  • Focus: A simple and fast text editor written in Jai
    7 projects | news.ycombinator.com | 2 Sep 2023
    https://pastebin.com/VPypiitk This is a very small experiment i did to learn the metaprogramming features. its an ECS library using the same model as entt (https://github.com/skypjack/entt). In 200 lines or so it does the equivalent of a few thousand lines of template heavy Cpp while compiling instantly and generating good debug code.

    Some walkthrough:

    Line 8 declares a SparseSet type as a fairly typical template. its just a struct with arrays of type T inside. Next lines implement getters/setters for this data structure

    Line 46 Base_Registry things get interesting. This is a struct that holds a bunch of SparseSet of different types, and providers getters/setters for them by type. It uses code generation to do this. The initial #insert at the start of the class injects codegen that creates structure members from the type list the struct gets on its declaration. Note also how type-lists are a native structure in the lang, no need for variadics.

    Line 99 i decide to do variadic style tail templates anyway for fun. I implement a function that takes a typelist and returns the tail, and the struct is created through recursion as one would do in cpp. Getters and setters for the View struct are also implemented through recursion

    Line 143 has the for expansion. This is how you overload the for loop functionality to create custom iterators.

    The rest of the code is just some basic test code that runs the thing.

  • Introducing Ecsact
    8 projects | dev.to | 24 Jun 2023
    Since we wanted a common game simulation that would be on both the server and the client we looked into a few libraries that would fit our ECS needs. It was decided we were going to write this common part of our game in C++, but rust was considered. C++ was a familiar language for us so naturally EnTT and flecs came up right away. I had used EnTT before, writing some small demo projects, so our choice was made based on familiarity. In order to integrate with Unity we created a small C interface to communicate between our simulation code and Unity’s C#. Here’s close to what it looked like. I removed some parts for brevity sake.
  • Sharing Saturday #472
    7 projects | /r/roguelikedev | 23 Jun 2023
    Are you sure you don't want to use a C++ package manager? Libtcod is on Vcpkg and with that setup you could add the fmt library or EnTT. fmt fixes C++'s string handling and EnTT fixes everything wrong with the entities of the previous tutorials.
  • Where can I find the juiciest, most complex and modern c++ code?
    2 projects | /r/cpp_questions | 9 Jun 2023
  • What are the limits of blueprints?
    4 projects | /r/unrealengine | 25 May 2023
    There's also a performance question. While we can now use Blueprint nativization to convert Blueprints to C++ the result will be a fairly naive version, fast enough for most purposes but not if you're trying to push every bit of performance. This is where you're looking at making sure you're hitting things such as using the CPU cache as well as possible for an ECS system (Look at ENTT or Flecs if you want to see what they're about and why you'd want one), or a system needing to process massive amounts of data quickly such as the Voxel Plugin.
  • any resources for expanding on ECS?
    4 projects | /r/gamedev | 22 Apr 2023
    For a modern engine you’re probably best looking at Unity’s DOTS. You may also want to check out some of the different open source ECS libraries such as flecs and EnTT are two popular ones for C++, but there’s lots of them. Largely you’ll see lots of different approaches taken, all with their own pros and cons. Not all of them will be performant (some focus more on the design benefits) while others will be optimised for certain use cases. What you should prioritise will depend on your specific needs.
  • DynaMix 2.0.0 Released
    8 projects | /r/cpp | 13 Apr 2023
    You can think of DynaMix as combining one of these libraries with an ECS like entt(https://github.com/skypjack/entt)
  • Flecs – A fast entity component system for C and C++
    2 projects | news.ycombinator.com | 4 Apr 2023
    https://github.com/skypjack/entt is a fantastic alternative; also, one of the most beautiful codebases/elegant designs I 've come across.
    2 projects | news.ycombinator.com | 4 Apr 2023
  • Please roast my ECS implementation
    2 projects | /r/gamedev | 27 Feb 2023
    As a way to force myself to learn more about game engines I've created asimov-ts. While doing it, I tried to refrain from looking at other ECS implementations as much as possible and use only more theoretical sources. As a result, I think it's a bit different from other stuff I've seen like EnTT and bevy_ecs.

magnum

Posts with mentions or reviews of magnum. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2022-12-09.
  • Want to a 3D game without a game engine but not having to deal with opengl stuff ?
    4 projects | /r/gamedev | 9 Dec 2022
    Magnum
  • Good graphics engines to visualize my physics framework?
    5 projects | /r/gamedev | 14 Nov 2022
    If you want something that gives you more control you could use magnum.
  • 100,000 subscriber celebration – Ask the Godot contributors anything!
    22 projects | /r/godot | 1 Nov 2022
    Therefore, in terms of artist mindshare, Blender is the leading open source 3D creation program, but not the leading 3D creation program. I think Godot is already in a similar situation, and has been for a few years now. In comparison, most other open source game engines have focused on providing low-level functionality. These certainly fulfill a niche, but in my experience, most people want something that works at a higher level and comes with a built-in editor.
  • Looking for a 2D/3D rendering layer for C++
    3 projects | /r/gamedev | 23 Aug 2022
    Magnum is worth checking out.
  • Simple light graphics library for c++?
    7 projects | /r/gamedev | 14 Aug 2022
    Since you want something lightweight, I'll assume you mean the former. If that's the case, then checkout bgfx or Magnum. Magnum does include some extra features typically found in a graphics engine.
  • Best C++ libraries for 2D game development
    2 projects | /r/cpp | 24 Jul 2022
    You could try Magnum it wraps SDL and others, but you might find it maybe too low-level. It's certainly not Love2D.
  • Exceptions: Yes or No?
    4 projects | /r/cpp | 4 Jul 2022
    C++ is similar to C in that there are multiple "styles" of use that vary from project to project. Other, usually newer languages (C#, Python, Rust, etc) tend to have a stronger sense of what idioms should be used. Whereas, for instance, some C++ projects (like some GUI libraries and game/graphics engines) will partially/entirely replace the STL (and older ones may have been around before C++ had a standard library aside from C's), or forbid the use of certain C++ features (example).
  • What is a good absolutely minimalist game/rendering engine?
    7 projects | /r/gamedev | 17 Jun 2022
    Magnum Graphics
  • Magnum: Lightweight, modular C++11 graphics middleware for games/visualization
    6 projects | news.ycombinator.com | 23 Apr 2022
    > He has Vulkan support in here with a clearly marked file named Pipeline.cpp. The guy knows what a pipeline is...

    There is a Vulkan API wrapper. However, there is no "Vk Renderer" -- no code seems to use the Vulkan parts of the code system, and the two projects seem unrelated.

    > * Is this not a UBO interface?

    There are ways of making a uniform buffer, however the examples don't cover them and the API doesn't adapt automatically. See how all of the setters assert if UBOs are enabled.

    https://github.com/mosra/magnum/blob/cfc02599e54e02337dd56bb...

    > * I don't see why you think there's limited support for multiple framebuffers...?

    The code I do see is about binding/unbinding framebuffers in a stateful manner, e.g. AbstractFramebuffer::bind(), rather than supporting passes.

    > None of your criticism seem well intentioned. It might behoove you to give people the benefit of the doubt and realize that you may be able to learn something from them, even if they're so clearly inferior to you.

    To put it simply, I've taught enough graphics to know first-hand the kinds of misconceptions that OpenGL-styled APIs can cause, and I'm just a bit tired to see it continue. Admittedly I was a bit harsh, I don't mean any harm towards the author. There are just graphics APIs with interfaces I consider to be much better designed.

    6 projects | news.ycombinator.com | 23 Apr 2022

What are some alternatives?

When comparing entt and magnum you can also consider the following projects:

flecs - A fast entity component system (ECS) for C & C++

bgfx - Cross-platform, graphics API agnostic, "Bring Your Own Engine/Framework" style rendering library.

Ogre 3D - scene-oriented, flexible 3D engine (C++, Python, C#, Java)

Hazel - Hazel Engine

raylib - A simple and easy-to-use library to enjoy videogames programming

OpenSceneGraph - OpenSceneGraph git repository

flecs-lua - Lua script host for flecs

Roguelike-Tutorial-2021 - Roguelike tutorial written hard with GDscript

UnrealCLR - Unreal Engine .NET 6 integration

Taskflow - A General-purpose Parallel and Heterogeneous Task Programming System

GLFW - A multi-platform library for OpenGL, OpenGL ES, Vulkan, window and input