2021-09-26 12:06 CEST

View Issue Details Jump to Notes ]
IDProjectCategoryView StatusLast Update
0006437Spring engineGfx driver issuespublic2021-07-30 16:06
ReporterLicho 
Assigned To 
PrioritynormalSeveritymajorReproducibilityalways
StatusnewResolutionopen 
Product Version 
Target VersionFixed in Version 
Summary0006437: Export symbols to force use of dedicated GPU
DescriptionBoth NVIDIA and AMD support automated switch from integrated to dedicated card if they detect exported symbol in exe.

Add this to the code to force it

extern "C"
{
  __declspec(dllexport) int AmdPowerXpressRequestHighPerformance = 1;
}

extern "C"
{
  __declspec(dllexport) unsigned long NvOptimusEnablement = 0x00000001;
}

(Windows specific probably)
TagsNo tags attached.
Checked infolog.txt for ErrorsIrrelevant
Attached Files

-Relationships
+Relationships

-Notes

~0020591

sprung (reporter)

Cherry-pickable from BAR probably https://github.com/beyond-all-reason/spring/commit/1c500ab07aea71392b05e9f1f5fe9c46d0a83871
+Notes

-Issue History
Date Modified Username Field Change
2021-07-27 14:08 Licho New Issue
2021-07-30 16:06 sprung Note Added: 0020591
+Issue History