summaryrefslogtreecommitdiffstats
path: root/Examples/WhisperDesktop/useDiscreteGpu.c
diff options
context:
space:
mode:
authorKonstantin <const@const.me>2023-01-30 23:18:53 +0100
committerKonstantin <const@const.me>2023-01-30 23:18:53 +0100
commit5980f1ac5fdc8ff15e4761ef0123bb3783287b3e (patch)
treecbae1c46f37427a863eba3767d072fcab9bc1d3b /Examples/WhisperDesktop/useDiscreteGpu.c
parent600cb13f9f4b02d9030f99fc379bdebebb64b65d (diff)
Better performance of C++ samples on laptops with two graphics cards
Untested
Diffstat (limited to 'Examples/WhisperDesktop/useDiscreteGpu.c')
-rw-r--r--Examples/WhisperDesktop/useDiscreteGpu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/Examples/WhisperDesktop/useDiscreteGpu.c b/Examples/WhisperDesktop/useDiscreteGpu.c
new file mode 100644
index 0000000..09b6e5b
--- /dev/null
+++ b/Examples/WhisperDesktop/useDiscreteGpu.c
@@ -0,0 +1,2 @@
+__declspec( dllexport ) int NvOptimusEnablement = 1;
+__declspec( dllexport ) int AmdPowerXpressRequestHighPerformance = 1; \ No newline at end of file