View Issue Details

IDProjectCategoryView StatusLast Update
0004953The Dark ModCodingpublic16.05.2019 16:58
ReporterHMart Assigned Tostgatilov  
PrioritynormalSeverityfeatureReproducibilityN/A
Status resolvedResolutionfixed 
Product VersionTDM 2.07 
Target VersionTDM 2.08Fixed in VersionTDM 2.08 
Summary0004953: Better GPU detection for Laptops
DescriptionInclude in the source the following:

extern "c"
{
   __declspec(dllexport) DWORD NvOptimusEnablement = 0x01;
   __declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x01;
}

Youtube video showing "handmade hero" developer including this:

https://www.youtube.com/watch?v=iySIodVWS_s
TagsNo tags attached.
Attached Files
LaptopGPU.cpp (380 bytes)   
#ifdef _WIN32

// #4953 Make TDM use discrete GPU by default

extern "C"
{

   // https://docs.nvidia.com/gameworks/content/technologies/desktop/optimus.htm
   _declspec(dllexport) DWORD NvOptimusEnablement = 0x00000001;
   
   // https://gpuopen.com/amdpowerxpressrequesthighperformance/ 
   _declspec(dllexport) DWORD AmdPowerXpressRequestHighPerformance = 0x00000001;
}

#endif
LaptopGPU.cpp (380 bytes)   

Activities

nbohr1more

nbohr1more

10.01.2019 03:25

developer   ~0011287

https://docs.nvidia.com/gameworks/content/technologies/desktop/optimus.htm
nbohr1more

nbohr1more

10.01.2019 03:26

developer   ~0011288

https://gpuopen.com/amdpowerxpressrequesthighperformance/
nbohr1more

nbohr1more

10.01.2019 03:48

developer   ~0011289

https://gist.github.com/statico/6809850727c708f08458
nbohr1more

nbohr1more

10.01.2019 04:08

developer   ~0011290

Should be as easy as adding the attached LatopGPU.cpp to ExtLibs
and the MSCV project?
stgatilov

stgatilov

16.05.2019 03:44

administrator   ~0011806

http://forums.thedarkmod.com/topic/19979-choose-gpu/
stgatilov

stgatilov

16.05.2019 16:58

administrator   ~0011808

Duzenko has added "optimus" symbol on Windows.

I have extended to both NVIDIA and AMD. And added linux versions (in case that Bumblebee beast catches up). svn rev 8224.

Issue History

Date Modified Username Field Change
09.01.2019 23:35 HMart New Issue
10.01.2019 03:25 nbohr1more Note Added: 0011287
10.01.2019 03:26 nbohr1more Note Added: 0011288
10.01.2019 03:48 nbohr1more Note Added: 0011289
10.01.2019 04:07 nbohr1more File Added: LaptopGPU.cpp
10.01.2019 04:08 nbohr1more Note Added: 0011290
17.01.2019 11:13 STiFU Product Version => TDM 2.07
17.01.2019 11:13 STiFU Target Version => TDM 2.08
17.01.2019 11:22 STiFU Status new => confirmed
16.05.2019 03:44 stgatilov Note Added: 0011806
16.05.2019 16:58 stgatilov Note Added: 0011808
16.05.2019 16:58 stgatilov Assigned To => stgatilov
16.05.2019 16:58 stgatilov Status confirmed => assigned
16.05.2019 16:58 stgatilov Status assigned => resolved
16.05.2019 16:58 stgatilov Fixed in Version => TDM 2.08
16.05.2019 16:58 stgatilov Resolution open => fixed