Skip to content

Commit

Permalink
Use nvidia/AMD preferred graphics card hints
Browse files Browse the repository at this point in the history
Uses nvidia/AMD graphics card hints for cef-bootstrap similarly to the
main program.
  • Loading branch information
jp9000 committed Aug 10, 2018
1 parent 3b8ac9e commit 51136c4
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions cef-bootstrap/cef-bootstrap-main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 51136c4

Please sign in to comment.