FMX: How to force high performance with a specific GPU in Windows?


I recently discovered that Windows allows me to set which GPU gets used for specific applications. My FMX application is quite GPU intensive and switching from the integrated GPU to the high performance GPU has improved performance slightly. I’ve found that switching can also help some users who experience issues with my application caused by older GPUs.
Switching is done by going to Graphics Settings, searching for a specific application and switching to High Performance mode in options.
Of course, many users won’t do that for themselves, so I’m looking for a way to make sure that if there’s a high performance option then it is automatically selected for my application, or at least provide the user with the option. I would expect this to happen when the application is first run. Does anyone know how to do that programmatically?

Comments are closed.