r/sdl

I built a new fast and portable texture atlas builder with a LibGDX exporter
▲ 94 r/sdl+8 crossposts

I built a new fast and portable texture atlas builder with a LibGDX exporter

Hey everyone, I was building this tool for my internal use, and thought I would spin it off as a full tool and sell it in case it was useful for anyone else. I wanted something extremely fast and with good CLI integration, and something very portable as well. So that's what I built, in Zig with a Dear ImGui interface.

I am mostly focusing on code-first environments right now, like LibGDX. This is the exporter I use for my own projects in Haxe/Heaps.io, as it uses the LibGDX format.

https://clydegames.itch.io/packrat

Anyway, thanks for checking it out. Let me know what you think.

u/CLYDEgames — 1 day ago
▲ 17 r/sdl+9 crossposts

Your LLM inference benchmark is lying to you

Most large language model (LLM) inference framework comparisons begin with a leaderboard. One framework posts the highest tokens per second on a standard benchmark, and that number quietly becomes the reason a team adopts it.

The trouble is that the conditions that produce a clean benchmark result rarely resemble the conditions a model faces in production.

Synthetic benchmarks tend to use fixed prompt lengths, steady request rates, and a single model on familiar hardware. Production traffic does none of that.

This article is written for engineering leaders who are choosing an inference framework and want a way to reason about that choice beyond the headline numbers.

It covers why a benchmark winner can underperform once real traffic arrives, three tradeoff axes that usually decide the outcome, and a practical evaluation process you can run before you commit.

leaddev.com
u/Suspicious_Orchid770 — 9 days ago
▲ 3 r/sdl

MP3 distortion problem (C++ / SDL3 + Mixer)

Hello,

I have problem with mp3 decoder. I ported my game to SDL3 and Mixer but mp3 sounds have distortion.

But weird part is I get this distortion only Release mode. I'm using VS 2026 + Intel C++ Compiler 2025, X64 and W11. I dont have problem on Debug mode but my debug mode is not a real "Debug" mode, its literally have same optimization flags and libs with Release, only debug libs have ASAN + UBSAN

I created a sln with cmake for VS 2026 + ICX 2025. Libs are MT + NO DLL (static). I using mimalloc but I disabled and result same.

I'm only adding /QaxSSE4.1,SSE4.2,AVX,CORE-AVX2 flags when build libs / game (and adding fsanitize ubsan / asan for ASAN builds);

https://preview.redd.it/l82n4dphmnih1.png?width=706&format=png&auto=webp&s=dd496c26e2e31073950d70e5763b1dcf326efa8f

I talk with LLM's and they said "some problem with simd etc etc" and I addedDR_MP3_NO_SIMD to mixer and build but nothing changed.. If I know there is two mp3 decoder, I used both ones but still same.

I initialize mixer like this;

if (!SDL_InitSubSystem(SDL_INIT_AUDIO))
{
LOG("SDL_InitSubSystem(SDL_INIT_AUDIO) failed: {}", SDL_GetError());
return;
}

if (!MIX_Init())
{
LOG("MIX_Init failed: {}", SDL_GetError());
return;
}

ms_pMixer = MIX_CreateMixerDevice(SDL_AUDIO_DEVICE_DEFAULT_PLAYBACK, nullptr);

if (!ms_pMixer)
{
LOG("MIX_CreateMixerDevice failed: {}", SDL_GetError());
return;
}

ms_dataMap.clear();
ms_SoundLoaderQueue.Start(1); // DO NOT USE 1+

(I tried custom formats but nothing changed)

and this is SDL window init;

if (!SDL_WasInit(SDL_INIT_VIDEO | SDL_INIT_EVENTS))
{
  if (!SDL_Init(SDL_INIT_VIDEO | SDL_INIT_EVENTS))
  {
    LOG("SDL3 Init Failed: {}", SDL_GetError());
    return false;
  }
}

any help please?

Thanks!

reddit.com
u/Inner_Teacher5354 — 9 days ago
▲ 3 r/sdl

raylib and SDL compatibility for a game engine

want to make a game engine to for learning purposes, I like SDL's compatibility and better performance and raylib's features so I was wondering if there was a way to use both SDL and raylib or if it's just not efficient or redundant.

I'm going to use c++ for both of them.

reddit.com
u/ValkyrieValor_ — 12 days ago
▲ 1 r/sdl

(C#) How can i attach an SDL window to a winform panel in SDL3?

there is a tutorial for SDL2 where you can use SDL window handles and the panel window handle to parent them, so SDL "takes over" the panel. How can i do this in SDL3?

reddit.com
u/anotherfuturedev — 13 days ago