mirror of
https://github.com/minetest/minetest.git
synced 2024-11-27 10:03:45 +01:00
Request execution on dedicated GPU on Windows
This commit is contained in:
parent
7aea5cb88f
commit
22f0c66abb
@ -70,6 +70,15 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||||||
#include <cstdarg>
|
#include <cstdarg>
|
||||||
#include <cstdio>
|
#include <cstdio>
|
||||||
|
|
||||||
|
#if !defined(SERVER) && defined(_WIN32)
|
||||||
|
// On Windows export some driver-specific variables to encourage Minetest to be
|
||||||
|
// executed on the discrete GPU in case of systems with two. Portability is fun.
|
||||||
|
extern "C" {
|
||||||
|
__declspec(dllexport) DWORD NvOptimusEnablement = 1;
|
||||||
|
__declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 1;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
namespace porting
|
namespace porting
|
||||||
{
|
{
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user