FPSLocker Switch

From GameBrew
Revision as of 05:02, 2 April 2023 by HydeWing (talk | contribs) (Created page with "{{Infobox Switch Homebrews |title=FPSLocker |image=fpslockerswitch.png |description=Set custom FPS target in retail games. |author=masagrator |lastupdated=2023/03/19 |type=Utilities |version=1.1.0 |license=MIT |download=https://dlhb.gamebrew.org/switchhomebrews/fpslockerswitch.7z |website=https://gbatemp.net/threads/fpslocker-set-custom-fps-target-in-retail-games.627764/ |source=https://github.com/masagrator/FPSLocker |donation= }} {{#seo: |title=Switch Homebrew Apps (Ut...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
FPSLocker
File:Fpslockerswitch.png
General
Authormasagrator
TypeUtilities
Version1.1.0
LicenseMIT License
Last Updated2023/03/19
Links
Download
Website
Source

The FPSLocker tool, in conjunction with the SaltyNX plugin NX-FPS, enables you to establish custom frame rates for Nintendo Switch games through an overlay. It should be noted that this tool relies on detecting the graphics API to manipulate FPS, and in certain instances, game-specific patches may be necessary to exceed 30 FPS.

You can access these patches via the provided link. As of now, the maximum supported yaml size is 32kB, but future updates may allow for expansion.

Requirements

Media

FPSLocker on Switch homebrew to unlock FPS in game - (Tralala LS)

Usage

Overlay runs in two modes:

When game is running

If game is supported by SaltyNX and you installed everything correctly, you will see menu where first line states NX-FPS plugin is running. Explanation of each line:

  • Interval Mode - it's used by NVN API to set limiter to either 30 FPS (2) or 60 FPS (1 or 0 (0 means that game never bothered to set it, it can be also a sign that game is not utilizing NVN but EGL or Vulkan))
  • Custom FPS Target - it's used to lock game to certain FPS. If game is using engine proprietary FPS locks, it may not be able to unlock more than 30 FPS without additional patches.
  • Big number on the right - it shows how many frames have passed in last second for currently running game. This is to confirm that lock is working as expected.
  • Increase/Decrease FPS target - Change FPS Target by 5. Minimum is 15 FPS, max is 60 FPS. If FPS is set above 30 FPS, it sets interval mode to 1. Otherwise it sets interval to 2.
  • Disable custom FPS target - Removes FPS Target. Since we cannot predict what interval mode is expected at this point, it is in user's discretion to manipulate FPS to bring back correct interval before disabling FPS target.
  • Advanced settings - submenu which consists of:
    • Sync Wait - this is dangerous setting that disabled in most cases will crash game (for example Witcher 3 and Breath of The Wild), but in some can bring benefit of disabling double buffer at the cost of small graphical glitches (for example Xenoblade Chronicles 3). Use it with caution.
    • Convert config to patch file - if proper config file exists for this game and version, you will get an option to convert it to patch file that will be loaded when you will run this game next time. Patch is saved to SaltySD/plugins/FPSLocker/patches/*titleid_uppercase*/*buildid_uppercase*.bin
    • Delete patch file - if proper config file exists for this game and version, you will get an option to delete patch file so it won't be loaded when you will run this game next time.
  • Save settings - save profile for currently running game that will be loaded next time by plugin on boot automatically. Don't use it if you disabled Sync Wait and you didn't test it properly that it won't cause crash. Profile is saved in SaltySD/plugins/FPSLocker/*titleid_uppercase*.dat

When game is not running

It will list installed games (max 32) and as first option it's available "All" submenu.
Inside each one you will find two options:

  • Delete settings - it will delete file created by "Save settings" option
  • Delete patches - it will delete file created by "Convert config to patch file" option

Changelog

v.1.1.2

  • Fix RTLD detection in older games to get proper BID (f.e. in L.A. Noire).

v.1.1.1

  • Updated libtesla to fix random crash in docked mode related to freeing framebuffer.

v.1.1.0

  • Add support for creating LOCK patches from yaml configs.

v.1.0.0

  • First Release.

Thanks

Thanks to ~WerWolv for creating Tesla environment, and ~cucholix + ~Monked for tests.

External links

Advertising: