From 720f9fe0c137565ee3ecce31f02aaf6c57c51fae Mon Sep 17 00:00:00 2001 From: zhenyan121 <3367366583@qq.com> Date: Mon, 29 Jun 2026 16:03:58 +0800 Subject: [PATCH] build(windows): add Nvidia and AMD GPU high performance exports --- src/main.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main.cpp b/src/main.cpp index 68dd1f2..cf846c4 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,5 +1,14 @@ #include "Cubed/app.hpp" +#ifdef _WIN32 + +extern "C" { +__declspec(dllexport) unsigned long NvOptimusEnablement = 1; +__declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; +} + +#endif + int main(int argc, char** argv) { static_assert(sizeof(int) == sizeof(int32_t));