Homebrew WIP NX-FPS - SaltyNX plugin collecting FPS data

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,305
Trophies
3
XP
12,098
Country
Poland
Plugin was integrated with SaltyNX 0.7.0! Separate plugin is not developed anymore, don't use it with newest SaltyNX!


Recorded video is broken on YT, but only purpose of this video is to show NX-FPS in work.
For actual gameplay you can skip to 5:04.


SaltyNX plugin that collects FPS data in Nintendo Switch games. You need my fork of SaltyNX installed.
https://github.com/masagrator/SaltyNX/releases

Put NX-FPS.elf to
Code:
/SaltySD/plugins

Currently supported graphics APIs:
  • NVN
  • EGL
  • Vulkan

When game is booted, plugin outputs one file:
Code:
/SaltySD/FPSoffset.hex

There is stored address, where you can find PFPS, FPS has address PFPS - 0x8

PFPS - Pushed Frames Per Second (u8), it counts how many frames were actually pushed to display in second that passed.
FPS - Frames Per Second (float) calculated from averaged frametime, refreshed with each new frame.

If file is already there, it's rewritten by new address with each new game boot.

To show it on display, you can use Status Monitor Overlay >=0.4
https://gbatemp.net/threads/status-monitor-overlay-tesla-overlay-to-monitor-your-hardware.558505/

You can also make your own homebrew to use this plugin.

WARNING

Plugin brings some instability to boot process for some games. It is recommended to not close game before ~10 seconds have passed from showing Nintendo logo, otherwise you risk Kernel panic, which results in crashing OS.

---

Not working games and troubleshooting with this plugin you can find here:
https://github.com/masagrator/NX-FPS/blob/master/README.md

Thanks to:

- RetroNX channel for help with coding stuff,
- @CTCaer for providing many useful informations and convincing me to the end that I should target high precision,
- Herbaciarz for providing video footage.

Download
repo: https://github.com/masagrator/NX-FPS
releases: https://github.com/masagrator/NX-FPS/releases
 
Last edited by masagrator,

1basti1

Well-Known Member
Member
Joined
Jun 30, 2019
Messages
215
Trophies
0
Age
33
XP
953
Country
Germany
If I Install everything for that and then Boot a game I get a black Screen and I cant do anything.

Edith: sorry, forgot. latest atmosphere, and FW 9.1.0.

I use Hekate as payload.
I had the Same problems before with reverseNX. I think it has to do with saltynx. When I deleted it, everything was working again.

i guess im too stupid...
 
Last edited by 1basti1,

1basti1

Well-Known Member
Member
Joined
Jun 30, 2019
Messages
215
Trophies
0
Age
33
XP
953
Country
Germany
Ok, I have to read. I "installed" the contents of kip.zip and nsp.zip on my sd card. I deleted the kip thingy. Now every game starts again but tesla isnt opening anymore. Even on homescreen.

Edit: I restarted the console. I can open tesla but when I click on status monitor, tesla closes and wont open again.
 
Last edited by 1basti1,

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,305
Trophies
3
XP
12,098
Country
Poland
Ok, I have to read. I "installed" the contents of kip.zip and nsp.zip on my sd card. I deleted the kip thingy. Now every game starts again but tesla isnt opening anymore. Even on homescreen.
Install Tesla Menu 1.0.1 and Restart Switch.

--------------------- MERGED ---------------------------

And maybe you have deleted nx-ovlloader.
 
  • Like
Reactions: 1basti1

1basti1

Well-Known Member
Member
Joined
Jun 30, 2019
Messages
215
Trophies
0
Age
33
XP
953
Country
Germany
I restarted again without doing anything. I can start tesla. I click on edizon, tesla closes, i can start tesla again then i see cheats/stats screen. When i go back with B tesla closes again. wtf? Ok, I guess this isnt a problem with your homebrew right now thanks anyways.

Everything is installed. I just downloaded every file and copied it over.
 

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,305
Trophies
3
XP
12,098
Country
Poland
I restarted again without doing anything. I can start tesla. I click on edizon, tesla closes, i can start tesla again then i see cheats/stats screen. When i go back with B tesla closes again. wtf? Ok, I guess this isnt a problem with your homebrew right now thanks anyways.

Everything is installed. I just downloaded every file and copied it over.
As I said - install Tesla Menu 1.0.1. I had the same issues on 1.0.2.
 
  • Like
Reactions: 1basti1

1basti1

Well-Known Member
Member
Joined
Jun 30, 2019
Messages
215
Trophies
0
Age
33
XP
953
Country
Germany
omg. Im so sorry...

I did it. Now everything works. FPS Counter also works. Thank you!

--------------------- MERGED ---------------------------

Now the overlay shouldnt be so big Just a little FPS counter in the top left would be cool.
 

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,305
Trophies
3
XP
12,098
Country
Poland
omg. Im so sorry...

I did it. Now everything works. FPS Counter also works. Thank you!

--------------------- MERGED ---------------------------

Now the overlay shouldnt be so big Just a little FPS counter in the top left would be cool.
Well, this is territory of Status Monitor Overlay.
Plugin can be integrated to any app.
 
  • Like
Reactions: 1basti1
0.2

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,305
Trophies
3
XP
12,098
Country
Poland
NX-FPS 0.2 released.
Added support for EGL, which means games like The Unholy Society and Layton's Mystery Journey: Katrielle and the Millionaires' Conspiracy are now supported.
 
  • Like
Reactions: mathew77

JonJaded

Well-Known Member
Member
Joined
May 22, 2016
Messages
682
Trophies
0
XP
2,986
Country
United States
This is pretty BIG!

Once again, the boys over at digital foundry won't have to manually count frames. (for handheld atleast)
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • SylverReZ @ SylverReZ:
    I've already seen a lot of videos about them, and people no longer care.
  • realtimesave @ realtimesave:
    @Xdqwerty that's ok tho if you ever needed another model they are only like 60-80 dollars on offerup. pretty cheap
    +2
  • SylverReZ @ SylverReZ:
    eBay sells Xbox 360s for £30.
  • realtimesave @ realtimesave:
    I wonder if there's an hdmi adapter for the old model
  • realtimesave @ realtimesave:
    cos that jtag works pretty damn good
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, ik its a scam, thats why i mentioned it
    +1
  • realtimesave @ realtimesave:
    even though it is a system prone to rrod which it doesn't have
    +1
  • BigOnYa @ BigOnYa:
    I would not recommend 360 phat models anymore, slims are better, and RGH3 possible, phats only rgh1 or jtag
    +1
  • realtimesave @ realtimesave:
    ya but phat has ps2 chip in it :)
  • SylverReZ @ SylverReZ:
    This is a great buying guide that I recommend.
  • realtimesave @ realtimesave:
    my rgh systems glitch pretty damn fast
  • SylverReZ @ SylverReZ:
    @BigOnYa, Except Winchester, which even to this day, is not moddable.
    +1
  • realtimesave @ realtimesave:
    now I'm trying to figure out PS4 modding.
    +1
  • realtimesave @ realtimesave:
    looks easy
  • SylverReZ @ SylverReZ:
    @realtimesave, It definitely did take a while for the PS4 to be fully hacked, much like the PS Vita.
  • SylverReZ @ SylverReZ:
    Sony has announced that they will be using a non-x86 processor for their next-gen console.
  • BigOnYa @ BigOnYa:
    Amazon fire sticks switching to a custom linuxOs instead of Android, sucks for 3rd party apks
  • Xdqwerty @ Xdqwerty:
    @BigOnYa, is the red ring of death still common in phat xbox 360s?
  • SylverReZ @ SylverReZ:
    @BigOnYa, And Linux, regardless of its distro, is still easy to install 3rd-party modifications.
  • BigOnYa @ BigOnYa:
    Yes, phats are just a good heater for the winter months
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Yes, its only relatively common on early models.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, then the chance of potentially me wanting to have a phat xbox 360 is -1%
  • SylverReZ @ SylverReZ:
    If you have one, then chances are is that it needs a reballing of the chips.
  • BigOnYa @ BigOnYa:
    If you can a slim, even if few dollars more, do it
    BigOnYa @ BigOnYa: If you can a slim, even if few dollars more, do it