SDL_GetSystemRAM(3)
π SDL_GetSystemRAM(3) π
okay bestie, welcome to the SDL3 FUNCTIONS section of the manual, and today's main character is SDL_GetSystemRAM π«Ά
β¨ NAME β¨
SDL_GetSystemRAM β literally just tells you how much RAM your system has configured. that's it. that's the whole job. and she does it flawlessly π
πΈ SYNOPSIS πΈ
#include <SDL3/SDL_cpuinfo.h>
int SDL_GetSystemRAM(void);
no args, no drama, no chaos. she takes void and she takes it proudly β¨
π¦ RETURN VALUE π¦
she hands you back an int β the amount of RAM configured in the system, measured in MiB πΎ
so like. if you get 16384 back, that's 16384 MiB. do with that information what you will, bestie. math is your friend, i believe in you π
π THREAD SAFETY π
it is safe to call this function from any thread π§
no locks, no "only from the main thread", no little asterisk of doom. call it from wherever. she's chill like that. iconic behaviour, honestly π
β AVAILABILITY β
this function has been available since SDL 3.2.0 π
if you're on something older than that... girl. upgrade. i'm not mad, i'm just disappointed π
and that's the whole page, no notes π
Simple Directmedia Layer β SDL 3.4.18 β and yeah, the same SDL_GetSystemRAM(3) you just read about. mwah, go check your RAM, love u, bye π«Άβ¨π
π¦ where this page comes from
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 43: SDL3-devel 3.4.18-1.fc43 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- fedora 44: SDL3-devel 3.4.18-1.fc44 Β· Zlib AND MIT AND Apache-2.0 AND (Apache-2.0 OR MIT)
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms