VRSFML
An opinionated fork of SFML with autobatching that automatically coalesces draw calls for objects using the same RenderStates, turning e.g. 10,000 sprite draws into a single call. It also adds modern OpenGL and first-class Emscripten support, a new audio API supporting multiple simultaneous devices, compile-time API safety, a built-in SFML::ImGui module, SDL3 instead of bespoke platform-dependent code, rendering of 500k+ objects in one draw call, fast compilation, and minimal run-time debug overhead.
What it addresses
Upstream SFML issues one draw call per object, so drawing many objects requires thousands of separate draw calls.
Shared over time
Each entry reflects what was shared on that date. Details may have changed since then.
VRSFML
An opinionated fork of SFML with autobatching that automatically coalesces draw calls for objects using the same RenderStates, turning e.g. 10,000 sprite draws into a single call. It also adds modern OpenGL and first-class Emscripten support, a new audio API supporting multiple simultaneous devices, compile-time API safety, a built-in SFML::ImGui module, SDL3 instead of bespoke platform-dependent code, rendering of 500k+ objects in one draw call, fast compilation, and minimal run-time debug overhead.
Problem: Upstream SFML issues one draw call per object, so drawing many objects requires thousands of separate draw calls.
Posted by @SuperV1234 · Original source ↗
Source text · @SuperV1234 · · Source ↗
I've recently added autobatching to my SFML fork (https://github.com/vittorioromeo/VRSFML/tree/bubble_idle). Drawing multiple objects that use the same RenderStates will now be automatically coalesced into a single draw call, for example:
VRSFML
An experimental modern C++20 fork of the SFML multimedia library. It adds modern OpenGL with first-class Emscripten support, a batching system that renders 500k+ objects in one draw call, a new audio API supporting multiple simultaneous devices, enhanced compile-time API safety, a flexible design approach over strict OOP, a built-in SFML::ImGui module, lightning fast compilation times, and minimal run-time debug mode overhead. Interactive demos run in the browser.
Problem: Upstream SFML is more suitable for complete beginners and gives experienced users less power and flexibility.
Audience: Developers familiar with SFML looking for a similar library that gives more power and flexibility to users
Posted by @SuperV1234 · Original source ↗
Source text · @SuperV1234 · · Source ↗
I've been working on an experimental modern C++20 fork of the popular SFML library, that introduces the following new major features/changes: