Homebrew WIP Status Monitor Overlay - Tesla Overlay to monitor your hardware

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,296
Trophies
3
XP
12,068
Country
Poland
Preview of my new mode: Micro

Release soon

For anybody that knows how libtesla works underhood - no, I didn't make framebuffer bigger than originally is. And it's not a separate file.

2023022613580800.jpg
 

dygeo

Well-Known Member
Newcomer
Joined
Feb 5, 2023
Messages
51
Trophies
0
Age
31
XP
126
Country
France
Aperçu de mon nouveau mode : Micro

Sortie bientôt

Pour tous ceux qui savent comment libtesla fonctionne sous le capot - non, je n'ai pas agrandi le framebuffer qu'il ne l'était à l'origine. Et ce n'est pas un fichier séparé.

View attachment 355731
did you just do it?
Post automatically merged:

did you just do it?
it will be available when 😀
 

Chrisssj2

Well-Known Member
Member
Joined
Feb 12, 2008
Messages
2,705
Trophies
1
XP
4,390
Country
Netherlands
Released 0.8.0 version adding Micro mode.
I needed something to have a fast way to move my eyes between different data and decided to color type of stats with light red color.

View attachment 355786

https://github.com/masagrator/Status-Monitor-Overlay/releases/tag/0.8.0
I had just downloaded update. only to find it updated again in last 2 hours xD thnx. great new functionality will test near future. So I assume tesla plugin with overlay environment doesnt need update for 16.0?
 

binkinator

Garfield’s Fitness Coach
Member
GBAtemp Patron
Joined
Mar 29, 2021
Messages
6,511
Trophies
2
XP
6,155
Country
United States
0.8.1

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,296
Trophies
3
XP
12,068
Country
Poland
Released 0.8.1 update that moves from reading FPS by using dmnt:cht to reading from SaltyNX SharedMemory.

This solves issue with thread desyncing, audio cracking, etc. that you may have encountered when playing games while using NX-FPS. It may also solve issues with some random detection of game running when actually that was not correct (since we don't rely anymore on offset writing to / reading from file on sdcard).

It requires NX-FPS 0.4+ and SaltyNX 0.5.0+ to read FPS.

I was working on it since April 2022 but couldn't figure out why it didn't work when I was trying to use SaltyNX SharedMemory with more than one plugin. Now everything seems to work flawlessly. Edited ReverseNX-RT code to support SharedMemory for testing purposes, but I guess I will release it too since I put some work into it and code is already merged anyway into repo.

Thanks to @cucholix and ~Monked for tests.
 
Last edited by masagrator,

Desconocido90

Well-Known Member
Newcomer
Joined
May 10, 2016
Messages
87
Trophies
0
Age
34
XP
863
Country
I love the "micro" option from the last updates...
But why does that option disappear from the menu if I write a prefix 0_2 in the ovl file?
 

meha

Well-Known Member
Member
Joined
Feb 12, 2023
Messages
216
Trophies
0
Age
29
XP
854
Country
Korea, South
I love the "micro" option from the last updates...
But why does that option disappear from the menu if I write a prefix 0_2 in the ovl file?
if you check github readme of micro mode :

"It shows only if you didn't change filename of overlay file (So it should be "Status-Monitor-Overlay.ovl"). This is because we need to reload overlay to change framebuffer dimensions without taking more RAM, and Tesla Menu (and libtesla with it) doesn't provide info about filename of overlay that was loaded."
 

Desconocido90

Well-Known Member
Newcomer
Joined
May 10, 2016
Messages
87
Trophies
0
Age
34
XP
863
Country
if you check github readme of micro mode :

"It shows only if you didn't change filename of overlay file (So it should be "Status-Monitor-Overlay.ovl"). This is because we need to reload overlay to change framebuffer dimensions without taking more RAM, and Tesla Menu (and libtesla with it) doesn't provide info about filename of overlay that was loaded."

Thanks for the explanation.

Apparently, it does work if you have two copies of the ovl: one with the prefix and another with the original name (I assume it reloads the second file)
 
  • Like
Reactions: hippy dave
0.8.3

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,296
Trophies
3
XP
12,068
Country
Poland
I got some requests from people to add this into my overlay after original Switch-OC-Suite got nuked, so here it is.

Version 0.8.3:
  • Add Battery Power Flow stat into Full, Mini, Micro modes and Battery/Charger tab
  • Add Battery Current Flow into Battery/Charger tab
  • Change Battery Voltage from 45s average to average of 5 to match better with Battery Current Flow and get faster responses to changes in voltage at the cost of slightly less accurate readings
  • Fix a random issue with allocing memory for reading Wi-Fi password and battery stats
Reused code from Switch-OC-Suite for reading max17050 registers, so thanks to KazushiMe for writing such easy to use functions.
Also thanks to CTCaer's Hekate from which I took max17050.h and calculation formulas for reading battery stats from max17050 chip.

Battery Power Flow is calculated based on Battery Voltage and Battery Current Flow. They are read once every second and what you see is an average of 5 short period readings to smooth out fluctuations. There was an option to get 45s average that is constantly updated by chip and so value is pretty accurate, but you won't be able to see changes immediately, so decided to use slightly less accurate method to get faster responses.

And because there was too low space for Micro mode to put new data when FPS is read, I have decided to delete units from first two temperatures, and when FPS is read cut decimals of temperatures.

2023041611090200.jpg

Post automatically merged:

And preview of new mode (hide youtube's bottom bar to see it at the beginning :P).
Green line is if FPS is withing range 29.9-30.1 or 59.9-60.1 (not represented by number rendered in background because it's rounded, but from actual reading from plugin), blue if value matches Y position on graph with previous value (aka closest pixel on left). Anything else is white.

As you can see in Xenoblade Chronicles 3 with unlocked framerate FPS is jumping all around while when bringing back stock FPS settings line is green all the time.

I need to resolve few small graphical glitches before releasing. It's not about what you see on video, because they are not that visible like one pixel sometimes rendering on the right side of graph and disappearing.

Graph has exactly 61 pixels of height to represent each rounded to integer FPS as pixel. It can move from top to bottom (this option will be also added to classical FPS Counter).

 
Last edited by masagrator,
0.9.0

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,296
Trophies
3
XP
12,068
Country
Poland
0.9.0 version is now available.

Changelog:
  • Corrected Battery Power Flow calculation
  • Changed Battery Stats reading to 2 readings per second. Current, Voltage and Power Flow are calculated now via 10 last readings.
  • Changed FPS average calculation to 10 last readings instead of constant averaging
  • Added Graphs tab with currently only FPS available (Graphs tab won't show for now if you don't have SaltyNX installed)
  • Moved Battery/Charger + Miscellaneous tabs under "Other" tab
  • You can move now FPS Counter + FPS Graph to the bottom and top of screen by pressing ZR + R + D-Pad Down/Up
For FPS readings it is required to update NX-FPS to version 1.4.0+
After few years I have finally tackled graph. So we are close to 1.0.0 release.
If you have any ideas for another graphs I can implement, give me a tip with proper explanation how this should work.

Finally at least one equation I have learned in middle school was useful. :D
 

sorabora

Well-Known Member
Member
Joined
Dec 8, 2016
Messages
368
Trophies
0
XP
1,508
Country
United States
0.9.0 version is now available.

Changelog:

After few years I have finally tackled graph. So we are close to 1.0.0 release.
If you have any ideas for another graphs I can implement, give me a tip with proper explanation how this should work.

Finally at least one equation I have learned in middle school was useful. :D

The graph is especially cool, thank you.

Question: what are the tiny white dots that appear over the green line in the graph?
 

masagrator

The patches guy
OP
Developer
Joined
Oct 14, 2018
Messages
6,296
Trophies
3
XP
12,068
Country
Poland
Question: what are the tiny white dots that appear over the green line in the graph?
White line is the default color. Green line is if it's rounded 30.0 or 60.0 aka -0.05/+0.04

If it's any X.0 that is not 30.0 or 60.0 with this rounding error, it's purple. So those white dots are actually showing when FPS on this height is not matching with what this height represents.

Colors show only if previous frame was in the same range error.

So f.e.
29.90 - white
29.96 - white
30.04 - green
30.01 - green
30.09 - white

39.90 - white
39.96 - white
40.04 - purple
40.01 - purple
40.09 - white

It makes framepacing issues more visible, though rare occurrences of white dots are not necessarily a sign of issues with framepacing (it is necessary to synchronize with vsync event to figure out such very small issues and for now I have no idea how to do that). Constant white line at 30 and 60 FPS height actually is.
 
Last edited by masagrator,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    BigOnYa @ BigOnYa: Ok good chatting, I'm off to the bar, to shoot some pool, nighty night. +1