@@ -27,8 +27,8 @@ def launch_game(self, game, gamescope=False):
2727 app_id = game .get ('app_id' , '' )
2828 prefix = game .get ('prefix' , '' )
2929 launch_options = game .get ('launch_options' , '' ).split ()
30- env = os .environ .copy ()
3130 fps_limit = game .get ('fps_limit' , '' )
31+ env = os .environ .copy ()
3232
3333 # Validate inputs
3434 if runner != 'Steam' and not os .path .exists (exe ):
@@ -58,8 +58,6 @@ def launch_game(self, game, gamescope=False):
5858 env ['WINEESYNC' ] = '1' if game .get ('enable_esync' , self .config_manager .settings ['enable_esync' ]) else '0'
5959 env ['WINEFSYNC' ] = '1' if game .get ('enable_fsync' , self .config_manager .settings ['enable_fsync' ]) else '0'
6060 env ['DXVK_ASYNC' ] = '1' if game .get ('enable_dxvk_async' , self .config_manager .settings ['enable_dxvk_async' ]) else '0'
61- if fps_limit :
62- env ['DXVK_FRAME_RATE' ] = fps_limit
6361
6462 # Build command
6563 cmd = []
@@ -90,6 +88,9 @@ def launch_game(self, game, gamescope=False):
9088 if '--bigpicture' in launch_options :
9189 cmd .extend (['-e' , '-f' ])
9290 options_to_remove .append ('--bigpicture' )
91+ if fps_limit :
92+ cmd .append ('-r' )
93+ cmd .append (str (fps_limit ))
9394 # Remove processed options
9495 launch_options = [opt for opt in launch_options if opt not in options_to_remove ]
9596 cmd .append ('--' )
0 commit comments