How to figure out from Lua which graphics adapter is used?

For a desktop game I’d like to display, like in big AAA games, what graphics adapter is being used, in the game settings. How to do this?

I looked through graphics., render., sys.* API - there seems to be no such function.

1 Like

Hi!

Correct, we currently have no way to list any devices, their capabilities, nor to choose any devices at startup.

I’d like to have Lua hooks for enumerating graphics/sound cards, so that they can be presentd and also chosen during the next startup.
But at least listing the currently chosen devices and their capabilities would be nice.

1 Like

The plan is/was to add this into the graphics namespace, as well as some functionality to check available extensions and so on. It should be fairly trivial to implement afaik

3 Likes

We could add something to at least read the current graphics adapter in sys.get_sys_info() or sys.get_engine_info() or perhaps via a new function?

3 Likes

I vote for this! The name of the field could be graphics_adapter.

1 Like

Ok, please open a feature request on GitHub!

1 Like