Author Topic: Automatically switch to high-performance GPUs  (Read 1088 times)

0 Members and 1 Guest are viewing this topic.

Offline The E

  • He's Ebeneezer Goode
  • Global Moderator
  • 213
  • Nothing personal, just tech support.
    • Skype
    • Steam
    • Twitter
Automatically switch to high-performance GPUs
Okay, so after the last time this came up, I tried looking for ways to do this programmatically again. Turns out, it's actually rather simple, but given weirdness like the beam crash bug, I think it's best to give this a test run here before we get this into trunk.

In order to do this, you'll need to:
a) Download this build
b) Make sure that any rules you have defined in your driver's control panel app for FSO are inactive.
c) Run this build as you would any other
d) Post the fs2_open.log and any issues you encounter here
**** every cause that ends in murder and children crying. ― Iain Banks
Join the fun at the HLP IRC channel. Get the latest spam and gossip as long as it's fresh!

 

Offline chief1983

  • Still lacks a custom title
  • Moderator
  • 212
  • ⬇️⬆️⬅️⬅️À➡️⬇️
    • Minecraft
    • Skype
    • Steam
    • Twitter
    • Fate of the Galaxy
Re: Automatically switch to high-performance GPUs
Could use a troubleshooting flag to disable this, if we have to.
Fate of the Galaxy - Now Hiring!  Apply within | Diaspora | SCP Home | Collada Importer for PCS2
Karajorma's 'How to report bugs' | Mantis
#freespace | #scp-swc | #diaspora | #SCP | #hard-light on EsperNet

"You may not sell or otherwise commercially exploit the source or things you created based on the source." -- Excerpt from FSO license, for reference

Nuclear1:  Jesus Christ zack you're a little too hamyurger for HLP right now...
iamzack:  i dont have hamynerge i just want ptatoc hips D:
redsniper:  Platonic hips?!
iamzack:  lays

 

Offline The E

  • He's Ebeneezer Goode
  • Global Moderator
  • 213
  • Nothing personal, just tech support.
    • Skype
    • Steam
    • Twitter
Re: Automatically switch to high-performance GPUs
I don't think we can, because I have no idea when the values this uses are actually read by the drivers. If it's on creation of a graphics context, then that's not an issue; if it is on program start, I have no idea how to make sure that those variables are in the state we (or the user) wants them to be.

(For those interested in how this works: Both AMD and NVidia have defined certain variables that an executable can export, i.e. make readable for outside programs, which tell the drivers to use the high-performance GPU in the system)
**** every cause that ends in murder and children crying. ― Iain Banks
Join the fun at the HLP IRC channel. Get the latest spam and gossip as long as it's fresh!

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Automatically switch to high-performance GPUs
No nVidia Control Panel profiles defined (latest Win 10 build reset them?  IDK :shrug: ) so that's set, I played through all of the FS2 retail training missions with the 2014 MVPs, no issues.

Code: [Select]
  OpenGL Vendor    : NVIDIA Corporation
  OpenGL Renderer  : GeForce GT 540M/PCIe/SSE2
  OpenGL Version   : 4.5.0 NVIDIA 347.25

Looks great!  :yes:

[attachment deleted by nobody]

 

Offline Jackho

  • 25
  • Gnoti seauton ...
    • Downloads an al
Re: Automatically switch to high-performance GPUs
Hi,
I tried this build with a couple of missions in various mods. I got no trouble whatsoever. But I wasn't aware of my FPS being so low at times (10 - 12) !  :wtf:
I need to see what I get with my usual setup.

test successful.


[attachment deleted by nobody]
A+
Jack H. : "Well... There's much more to check than six..."

 

Offline jr2

  • The Mail Man
  • 212
  • It's prounounced jayartoo 0x6A7232
    • Steam
Re: Automatically switch to high-performance GPUs
Hi,
I tried this build with a couple of missions in various mods. I got no trouble whatsoever. But I wasn't aware of my FPS being so low at times (10 - 12) !  :wtf:
I need to see what I get with my usual setup.

test successful.


Debug builds do extra work logging everything, that would be my guess.