switch_default_scalemode(3)

πŸ“¦
version 0.7.1 Β· 2 versions
, in nixos 26.05

πŸ’… NAME πŸ’…

switch_default_scalemode β€” the little glow-up that decides the default scale-mode for freshly loaded images, bestie ✨


πŸŽ€ SYNOPSIS πŸŽ€

nil
switch_default_scalemode( scalemode )

πŸ¦‹ DESCRIPTION πŸ¦‹

Okay so basically this function takes exactly one of two vibes for scalemode, and no other options are invited to the party πŸ™…β€β™€οΈ:

  • SCALE_NOPOW2 β€” the default one, the main character, the one you get if you don't say anything 🌸
  • SCALE_POW2 β€” the other one, which you can also set through the command-line when you're starting up the engine, iykyk πŸ‘‘

The tea on SCALE_POW2 β˜•: it's for older GPUs that literally cannot handle textures whose dimensions aren't an even power-of-two 😭 For those legacy icons, SCALE_POW2 will manually rescale the textures so they fit β€” but at a fairly high CPU cost on-load πŸ’€ Like, it works, but your CPU is gonna feel it.

So: pick your scalemode, set it once, and let the new images know what's up 🫢


⭐ sign-off ⭐

This gem comes to you from vidsys, dated October 2026 β€” slay, periodt, go forth and scale responsibly πŸ§šπŸ’œ

πŸ“¦ where this page comes from