SDL_HINT_RENDER_GPU_LOW_POWER(3)

πŸ’– SDL_HINT_RENDER_GPU_LOW_POWER πŸ’–

okay bestie, so this is a page from the SDL3 FUNCTIONS manual, and today we're talking about SDL_HINT_RENDER_GPU_LOW_POWER β€” a variable that controls whether you wanna prefer a low-power GPU when your machine is out here living that multi-GPU life. πŸ¦‹


✨ NAME ✨

SDL_HINT_RENDER_GPU_LOW_POWER β€” a variable controlling whether to prefer a low-power GPU on multi-GPU systems. it's giving "choose your fighter" but for graphics cards πŸ’…


🌸 SYNOPSIS 🌸

#include <SDL3/SDL_hints.h>

#define SDL_HINT_RENDER_GPU_LOW_POWER "SDL_RENDER_GPU_LOW_POWER"

πŸŽ€ DESCRIPTION πŸŽ€

so like, this variable can be set to the following values, no cap:

  • "0" β€” prefer the high-performance GPU. this is the default, bestie. main character energy, maximum frames, your fans WILL be spinning. πŸ‘‘
  • "1" β€” prefer the low-power GPU. cozy mode. battery-saving era. πŸ”‹
important!!! this hint should be set before creating a renderer. like, before. not after. setting it afterwards is not it, fr fr. πŸ™ˆ

⭐ AVAILABILITY ⭐

this hint is available since SDL 3.2.0. it's been here a minute, so you can lowkey rely on it. 🫢


πŸ’œ SEE ALSO πŸ’œ

ngl bestie, there's nothing else listed here β€” this page is a solo act. 🎀


and that's the whole vibe!! go forth and pick your GPU wisely, you iconic little coder you. slay. πŸ’…βœ¨


sign-off szn πŸŽ€ β€” this page comes to you from Simple Directmedia Layer, rocking SDL 3.4.18. mwah, bye bestie!! πŸŒˆπŸ’–πŸ§š
πŸ“¦ where this page comes from