mirror of
https://github.com/lutris/lutris
synced 2024-09-15 22:09:55 +00:00
Add primusrun option
This commit is contained in:
parent
7f6f15a62b
commit
aa5c9a9fd7
|
@ -130,6 +130,10 @@ class Game(object):
|
|||
if system_config.get('reset_pulse'):
|
||||
audio.reset_pulse()
|
||||
|
||||
primusrun = system_config.get('primusrun')
|
||||
if primusrun and system.find_executable('primusrun'):
|
||||
launch_arguments.insert(0, 'primusrun')
|
||||
|
||||
prefix_command = system_config.get("prefix_command", '').strip()
|
||||
if prefix_command and system.find_executable(prefix_command):
|
||||
launch_arguments.insert(0, prefix_command)
|
||||
|
|
|
@ -49,6 +49,16 @@ system_options = [
|
|||
'help': ("Some games don't correctly restores gamma on exit, making "
|
||||
"your display too bright. Select this option to correct it.")
|
||||
},
|
||||
{
|
||||
'option': 'primusrun',
|
||||
'type': 'bool',
|
||||
'default': False,
|
||||
'label': 'Use primusrun (NVIDIA Optimus laptops)',
|
||||
'help': ("If you have installed the primus package, selecting this "
|
||||
"option will run the game with the primusrun command, "
|
||||
"activating your NVIDIA graphic chip for high 3D "
|
||||
"performance.")
|
||||
},
|
||||
{
|
||||
'option': 'display',
|
||||
'type': 'choice',
|
||||
|
|
Loading…
Reference in a new issue