I got 4.5 Million MSDF glyphs showing on Mac M1, using Instancing, why initial memory usage is high, compared to the expected amount?

As they are called on Linux … I got libsdl3-dev, libsdl3-image-dev, libsdl3-image0, and libsdl3-ttf-dev.

Just double checked. Seems the version of sdl3 for my system repo is 3.2.20. I’ll have to get sdl3 from somewhere else.

Building SDL 3.4.0 now …
success
Now stuck on building SDL_image. Keep getting build config errors on PNG, grrrr

CMake Error at cmake/PrivateSdlFunctions.cmake:220 (message):
  PNG::PNG is not a shared library, but has type=INTERFACE_LIBRARY
Call Stack (most recent call first):
  CMakeLists.txt:906 (target_get_dynamic_library)

Last update. I disabled PNG on SDL3_image just so I could build it and move on. Does your project use PNGs? After updating SDL3, I still get

/usr/bin/ld: /tmp/src-main-75f10488d250.o: in function `main::load_font_msdf_file':
src-main:(.text+0x6ba0): undefined reference to `IMG_LoadGPUTexture'
clang: error: linker command failed with exit code 1 (use -v to see invocation)

It’s late. I’m going to bed for now. Will mess around with it more tomorrow.

1 Like

Both PNG and IMG_LoadGPUTexture are needed to load msdf texture atlas.

g.font_msdf = load_font_msdf_file(
  g.gpu, copy_pass, 
  "FiraCodeNerdFont-Regular.png"
)
img.LoadGPUTexture(gpu, copy_pass, msdf_file, &w, &h)

I don’t understand why it doesn’t get installed simply.

Question for tomorrow: Are you using Arch linux?

Good Night.

No :melting_face: I’m on Kubuntu 25.10.

In my defense, I’ve been a Debian fan since the around 90s-00s, and so far Kubuntu has been really easy to have as both a dev system and a gaming system. While they do keep the kernel competitively up to date, other packages tend to take longer to get their latest versions pulled into the repo. Then of-course there’s the new rust :fire: situation, which has me concerned.