SDL
flecs
Our great sponsors
SDL | flecs | |
---|---|---|
9 | 48 | |
394 | 5,430 | |
- | - | |
4.8 | 9.7 | |
about 3 years ago | 3 days ago | |
C | C | |
GNU General Public License v3.0 or later | MIT License |
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.
SDL
-
Ask HN: What is the SDL.h file in SuperTux?
I don't know for sure, but could it be this?
-
Do i have enpugh knowledge to learn new libraries?
There is also SDL, which is a bit of a behemoth library, but gives you a lot of firepower if you want to get down to the nuts and bolts of building something from scratch with media. It provides a framework for working with graphics, sound, input hardware, etc., and is cross-platform. I haven't personally used SDL but it's a pretty well-utilized library. It's written in C so the same caveats apply as before, but works just fine with C++.
-
Fixing Stutters in Papers Please on Linux
This has already been fixed in the latest SDL version, but it's likely that the game comes bundled with it's own version.
-
I'm giving out microgrants to open source projects for the third year in a row! Brag about your projects here so I can see them, big or small!
I got tired of writing C# bindings code by hand to interop with native C/C++ libraries, so I automated the process. Example for SDL: https://github.com/bottlenoselabs/SDL-cs. The repository is automated daily using Dependabot to run C2CS, generate the P/Invoke code, and push a Git commit with the code automatically when there is a change to https://github.com/libsdl-org/SDL.
-
The Very First Post
Simple Directmedia Layer: a library that offers low-level access to resources like audio, video graphics, joystick, keyboard, mouse. It is mainly used for the development of video games (Stepmania and Valve's games such as Counter Strike: Source, as some examples).
-
AM2R @ Raspberry Pi - Take 3
Now, we'll need to source the latest SDL source tarball. You can find it [here](https://github.com/libsdl-org/SDL), but you can source the latest as of this writing with the command below. Run cd, and then run:
-
Good Open Source Projects?
Game library: https://github.com/libsdl-org/SDL
flecs
-
ECS, Finally
I've also been enjoying building My First Game™ in Bevy using ECS. The community around Bevy really shines, but Flecs (https://github.com/SanderMertens/flecs) is arguably a more mature, open-source ECS implementation. You don't get to write in Rust, though, which makes it less cool in my book :)
I'm not very proud of the code I've written because I've found writing a game to be much more confusing than building websites + backends, but, as the author notes, it certainly feels more elegant than OOP or globals given the context.
I'm building for WASM and Bevy's parallelism isn't supported in that context (yet? https://github.com/bevyengine/bevy/issues/4078), so the performance wins are just so-so. Sharing a thread with UI rendering suuucks.
If anyone wants to browse some code or ask questions, feel free! https://github.com/MeoMix/symbiants
-
Databases are the endgame for data-oriented design
Flecs does just that: https://ajmmertens.medium.com/why-it-is-time-to-start-thinking-of-games-as-databases-e7971da33ac3
-
Introducing Ecsact
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.
-
Prolog for future AI
Repository: https://github.com/SanderMertens/flecs
-
An in-game query engine heavily inspired by prolog
This is the project: https://github.com/SanderMertens/flecs (query engine implementation lives here: https://github.com/SanderMertens/flecs/tree/master/src/addons/rules)
-
What are the limits of blueprints?
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.
-
What's the hot tech stack these days?
If I knew C++ and I'd heard about it before I started my current project, I would have been tempted to use this https://github.com/SanderMertens/flecs which can be built to WASM. Of course you still need JavaScript in the front end to link to the WASM part. I've recently been using esbuild to bundle my front end code, which does a pretty similar job to webpack, but is a bit faster.
-
Bevy and WebGPU
When do think bevy will support entity-entity relationships ? https://github.com/bevyengine/bevy/issues/3742.
Flecs ECS already supports this: https://github.com/SanderMertens/flecs/blob/master/docs/Rela...
-
any resources for expanding on ECS?
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.
-
Flecs 3.2, a high performance game development framework for C and C++ is out!
To find more about Flecs, see the Github repository: https://github.com/SanderMertens/flecs
What are some alternatives?
entt - Gaming meets modern C++ - a fast and reliable entity component system (ECS) and much more
SFML - Simple and Fast Multimedia Library
ssr-proxy-js - A Server-Side Rendering Proxy focused on customization and flexibility!
GStreamer - GStreamer open-source multimedia framework
mpv - 🎥 Command line video player
libVLC
QtAv - A cross-platform multimedia framework based on Qt and FFmpeg. 基于Qt和FFmpeg的跨平台高性能音视频播放框架. Recommand to use new sdk https://github.com/wang-bin/mdk-sdk
JUCE - JUCE is an open-source cross-platform C++ application framework for desktop and mobile applications, including VST, VST3, AU, AUv3, LV2 and AAX audio plug-ins.
oot - Decompilation of The Legend of Zelda: Ocarina of Time
AvCpp - C++ wrapper for FFmpeg
Boost - Super-project for modularized Boost
MediaInfoLib - Convenient unified display of the most relevant technical and tag data for video and audio files.