| View Issue Details [ Jump to Notes ] | [ Issue History ] [ Print ] | ||||||||
| ID | Project | Category | View Status | Date Submitted | Last Update | ||||
|---|---|---|---|---|---|---|---|---|---|
| 0006437 | Spring engine | Gfx driver issues | public | 2021-07-27 14:08 | 2022-01-10 23:18 | ||||
| Reporter | Licho | ||||||||
| Assigned To | abma | ||||||||
| Priority | normal | Severity | major | Reproducibility | always | ||||
| Status | resolved | Resolution | reopened | ||||||
| Product Version | |||||||||
| Target Version | Fixed in Version | ||||||||
| Summary | 0006437: Export symbols to force use of dedicated GPU | ||||||||
| Description | Both 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) | ||||||||
| Tags | No tags attached. | ||||||||
| Checked infolog.txt for Errors | Irrelevant | ||||||||
| Attached Files |
| ||||||||
Notes |
|
|
sprung (reporter) 2021-07-30 16:06 |
Cherry-pickable from BAR probably https://github.com/beyond-all-reason/spring/commit/1c500ab07aea71392b05e9f1f5fe9c46d0a83871 |
|
abma (administrator) 2022-01-10 23:07 |
thanks,cherry-picked: https://github.com/spring/spring/commit/4834765270e28b105d7f916bfe374126d6b9c8a1 |
|
abma (administrator) 2022-01-10 23:15 |
i don't have windows nor nvidia: this makes https://github.com/spring/spring/blob/develop/rts/lib/SOP/SOP.hpp + https://github.com/spring/spring/blob/develop/rts/System/Main.cpp#L57 obsolete, right? |
|
abma (administrator) 2022-01-10 23:18 |
oh, this code was never used as it was never compiled with "-DPROFILE". i'll remove this as it adds A LOT of ugly code. |
Issue History |
|||
| Date Modified | Username | Field | Change |
|---|---|---|---|
| 2021-07-27 14:08 | Licho | New Issue | |
| 2021-07-30 16:06 | sprung | Note Added: 0020591 | |
| 2022-01-10 23:07 | abma | Assigned To | => abma |
| 2022-01-10 23:07 | abma | Status | new => resolved |
| 2022-01-10 23:07 | abma | Resolution | open => fixed |
| 2022-01-10 23:07 | abma | Note Added: 0020606 | |
| 2022-01-10 23:15 | abma | Status | resolved => feedback |
| 2022-01-10 23:15 | abma | Resolution | fixed => reopened |
| 2022-01-10 23:15 | abma | Note Added: 0020607 | |
| 2022-01-10 23:18 | abma | Status | feedback => resolved |
| 2022-01-10 23:18 | abma | Note Added: 0020608 | |


