Homebrew WIP NX-FPS - SaltyNX plugin collecting FPS data

masagrator

The patches guy
OP
Member
Joined
Oct 14, 2018
Messages
4,991
Trophies
2
XP
8,697
Country
Poland
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
31
XP
921
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
31
XP
921
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
Member
Joined
Oct 14, 2018
Messages
4,991
Trophies
2
XP
8,697
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
31
XP
921
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
Member
Joined
Oct 14, 2018
Messages
4,991
Trophies
2
XP
8,697
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
31
XP
921
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
Member
Joined
Oct 14, 2018
Messages
4,991
Trophies
2
XP
8,697
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
Member
Joined
Oct 14, 2018
Messages
4,991
Trophies
2
XP
8,697
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
555
Trophies
0
XP
1,853
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)
 
General chit-chat
Help Users
  • No one is chatting at the moment.
    Dark_Phoras @ Dark_Phoras: If I tell them in person, it goes well 99% of the time. I have a charm that doesn't translate to...