diff --git a/cef-bootstrap/cef-bootstrap-main.cpp b/cef-bootstrap/cef-bootstrap-main.cpp index d14003a6e..e7f039b74 100644 --- a/cef-bootstrap/cef-bootstrap-main.cpp +++ b/cef-bootstrap/cef-bootstrap-main.cpp @@ -20,6 +20,13 @@ #include "browser-app.hpp" #ifdef _WIN32 + +// GPU hint exports for AMD/NVIDIA laptops +#ifdef _MSC_VER +extern "C" __declspec(dllexport) DWORD NvOptimusEnablement = 1; +extern "C" __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1; +#endif + int CALLBACK WinMain(HINSTANCE, HINSTANCE, LPSTR, int) {