switch_default_scalemode(3)
π 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
- nixos 26.05: arcan 0.7.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms