Homebrew WIP NX-FPS - SaltyNX plugin collecting FPS data

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,318
Trophies
3
XP
12,120
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,318
Trophies
3
XP
12,120
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,318
Trophies
3
XP
12,120
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,318
Trophies
3
XP
12,120
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,318
Trophies
3
XP
12,120
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
683
Trophies
0
XP
3,004
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:
    Why not they just mine Monero instead of scamming vulnerable people? If they have a decent machine they can hit a jackpot at any given time.
    +1
  • SylverReZ @ SylverReZ:
    Bitcoin on the other hand, requires a very powerful mining rig and is more costly.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, different cultures so probably they have their reasons
  • K3Nv2 @ K3Nv2:
    Yes a $2,000 rig for $5 a day
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Or could be in correlation to laws.
    +1
  • SylverReZ @ SylverReZ:
    Technically, cryptocurrencies aren't illegal, as long as you don't use it for criminal activity. If you sign up with an exchange, and that they get a tip from law enforcement, they have the right to freeze your assets.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, Yea I heard law is vastly different there
  • SylverReZ @ SylverReZ:
    Nigeria's central bank did make crypto illegal before, until last year they lifted the ban. Always make sure to check before you exchange. ;)
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, speaking of crypto i remember reading about a guy who spend like 10 grand bitcoin on a couple pizzas (when bitcoin wasnt as worthy as nowadays)
  • SylverReZ @ SylverReZ:
    @Xdqwerty, That's mental. If he had saved up when Bitcoin sky-rocketed in price, then he might've become the next Jeff Bezos for all I know.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, he couldnt know the price was gonna skyrocket anyway
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Then it dropped sometime in 2022, 2021 was when it really went up in price.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, I also recall watching a video of some failed games with their own crypto currency or smth like that, lemme link it to you (it's in spanish tho)
  • SylverReZ @ SylverReZ:
    @Xdqwerty, I remember that. Didn't Steam ban games with NFTs before somehow devs managed to circumvent it? Think EA tried to dabble in NFTs too.
  • SylverReZ @ SylverReZ:
    Glad to hear people realise that NFTs aren't worth it these days. They realise that they're JPEGs hosted on a file-hosting site like AWS or Google Drive.
  • Xdqwerty @ Xdqwerty:
    Atleast it has captions
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Meta also tried to create their own crypto, but that fell through.
  • SylverReZ @ SylverReZ:
    Was called Libra, they had around 100 employees and wanted to hire more near to end of the year.
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, idk why facebook tried to do that metaverse thing if mmo games already existed before
  • Xdqwerty @ Xdqwerty:
    And Yea I refuse to call it meta
  • SylverReZ @ SylverReZ:
    @Xdqwerty, I refuse to call it Meta, too. It's a stupid name.
    +1
  • Xdqwerty @ Xdqwerty:
    @SylverReZ, then why did you call it like that a minute ago?
  • SylverReZ @ SylverReZ:
    I don't get why Facebook ever wanted to dabble into virtual reality, when other companies were doing it.
    +1
  • SylverReZ @ SylverReZ:
    @Xdqwerty, Just to emphasize on what I mean.
    +1
    SylverReZ @ SylverReZ: @Xdqwerty, Just to emphasize on what I mean. +1