Documentation of SFML 2.6.1
Warning: this page refers to an old version of SFML. Click here to switch to the latest version.Loading...
Searching...
No Matches
Headers. More...
#include <SFML/Config.hpp>
Go to the source code of this file.
Macros | |
#define | SFML_DEFINE_DISCRETE_GPU_PREFERENCE |
A macro to encourage usage of the discrete GPU. | |
#define SFML_DEFINE_DISCRETE_GPU_PREFERENCE |
A macro to encourage usage of the discrete GPU.
In order to inform the Nvidia/AMD driver that an SFML application could benefit from using the more powerful discrete GPU, special symbols have to be publicly exported from the final executable.
SFML defines a helper macro to easily do this.
Place SFML_DEFINE_DISCRETE_GPU_PREFERENCE in the global scope of a source file that will be linked into the final executable. Typically it is best to place it where the main function is also defined.
Definition at line 69 of file GpuPreference.hpp.