Homebrew WIP NX-FPS - SaltyNX plugin collecting FPS data

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,297
Trophies
3
XP
12,075
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,297
Trophies
3
XP
12,075
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,297
Trophies
3
XP
12,075
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,297
Trophies
3
XP
12,075
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,297
Trophies
3
XP
12,075
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
681
Trophies
0
XP
2,962
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
  • No one is chatting at the moment.
  • SylverReZ @ SylverReZ:
    @Materia_tofu, We do learn a lot from plenty of talented individuals.
  • Materia_tofu @ Materia_tofu:
    this is true! i learned how to make soundfont remixes from a friend back in 2021
    +1
  • BakerMan @ BakerMan:
    Update on my brother: He's home now, tired and hungry, obviously, but other than that, seems to be doing fine.
    +2
  • Veho @ Veho:
    That's a relief to hear. Do you know what happened?
  • SylverReZ @ SylverReZ:
    @BakerMan, Any idea what happened? I hope that your brother's doing good.
  • BakerMan @ BakerMan:
    Well, from what I've heard from my parents, he had a seizure last night, perhaps an epileptic episode, fucking died, had a near death experience, my dad called the paramedics, they showed up, took him to the hospital, and he woke up covered in tubes, and started complaining.
  • BakerMan @ BakerMan:
    He couldn't eat until after his MRI, when he had a bomb pop.
  • BakerMan @ BakerMan:
    What matters now is that he's doing alright.
  • Veho @ Veho:
    But you still don't know what it was?
  • Veho @ Veho:
    Has he had seizures before?
  • The Real Jdbye @ The Real Jdbye:
    apparently stress can cause seizures, my brother had one during a test once
  • The Real Jdbye @ The Real Jdbye:
    never had one before that, and never had one since
  • Redleviboy123 @ Redleviboy123:
    Question about game texture chanching Do i need an own game id?
  • The Real Jdbye @ The Real Jdbye:
    @Veho for those that want to
    experience being sonic the hedgehog
  • Veho @ Veho:
    Ah, you mean
    furries.
    +1
  • The Real Jdbye @ The Real Jdbye:
    well, sonic fans are a whole separate thing from furries
  • The Real Jdbye @ The Real Jdbye:
    like bronys
  • The Real Jdbye @ The Real Jdbye:
    sonic porn is too weird even for me
  • Dumpflam @ Dumpflam:
    bruh
  • Dumpflam @ Dumpflam:
    guys how do i delete a post
  • The Real Jdbye @ The Real Jdbye:
    you don't
  • The Real Jdbye @ The Real Jdbye:
    you can report it and request deletion
  • BakerMan @ BakerMan:
    Also, no, that was his first time having a seizure, and hopefully the last
    +1
    BakerMan @ BakerMan: Also, no, that was his first time having a seizure, and hopefully the last +1