News: 0001570256

  ARM Give a man a fire and he's warm for a day, but set fire to him and he's warm for the rest of his life (Terry Pratchett, Jingo)

SDL3 Enhances Logic For Selecting The Most Performant Vulkan GPU

([Linux Gaming] 6 Hours Ago Multi-GPU Selection)


The SDL3 library that is widely-used by cross-platform games has landed new code for revising how it selects the high performance GPU in multi-GPU systems.

The new code merged today for the Simple DirectMedia Layer project is picking the dedicated GPU with the highest amount of video RAM for the Vulkan renderer.

In cases beyond just having a single dedicated GPU to complement any integrated graphics, the SDL3 library is now set to pick the dedicated GPU with the most amount of vRAM available on the basis that it's likely to be the highest-end graphics card available on the system.

"If we prefer high performance, sum up all device local memory (rounded to megabytes) to deviceRank. In the niche case of someone having multiple dedicated GPUs in the same system, this theoretically picks the most powerful one (or at least the one with the most memory!)"

The logic isn't perfect but should pan out for the vast majority of use cases.

Those interested in all the details around this improved Vulkan device ranking for SDL can see [1]this merge request for all the information on this newly-merged code.



[1] https://github.com/libsdl-org/SDL/pull/13755



joaquinvacas

schmidtbag

kokoko3k

jonkoops

tda0626

ssokolow

zamadatix

Drep

touchdown

Sam: What do you know there, Norm?
Norm: How to sit. How to drink. Want to quiz me?
-- Cheers, Loverboyd

Sam: Hey, how's life treating you there, Norm?
Norm: Beats me. ... Then it kicks me and leaves me for dead.
-- Cheers, Loverboyd

Woody: How would a beer feel, Mr. Peterson?
Norm: Pretty nervous if I was in the room.
-- Cheers, Loverboyd