Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add option to show FPS counter and performance statistics #170

Merged
merged 2 commits into from
Mar 3, 2024

Conversation

keton
Copy link
Contributor

@keton keton commented Jan 26, 2024

This commit adds to debug menu toggle to show Unreal Engine FPS counter and engine statistics.

This provides non obnoxious way to have them on screen at all times. Stats appear in top left corner just outside of your normal field of vision. This allows you to turn them on and keep them on compared to Virtual Desktop overlay.

Compared to OpenXR toolkit this way is much more compatible with UEVR. Current builds of OpenXR increase number of crashes.

EDIT: after testing in quite some games it looks like devs can block this in release builds and customize overlay locations. But one of 2 added options always worked with exception of "Deliver us Mars" which has some bigger issue with UEVR.

This commit adds to debug menu toggle to show Unreal Engine FPS counter
and engine statistics.

This provides non obnoxious way to have them on screen at all times.
Stats appear in top left corner just outside of your normal field of
vision. This allows you to turn them on and keep them on compared to
Virtual Desktop overlay.

Compared to OpenXR toolkit this way is much more compatible with UEVR.
Current builds of OpenXR increase number of crashes.
@praydog
Copy link
Owner

praydog commented Jan 26, 2024

Are you able to verify in the games that you had issues with that they have actually blocked it? It could just be UEVR failing to locate the Exec function. You can use the "show native console" and press ~ to try and enter it manually, or use something like UUU to enable it.

@keton
Copy link
Contributor Author

keton commented Jan 26, 2024

Are you able to verify in the games that you had issues with that they have actually blocked it?

No. I've just assumed that if it's not working it must be disabled somehow. That plus seeing that most overlay positions are customized and make sense from game UI placement standpoint.

I've tried UE4SS Console Enabler in 3 different games to see what is possible. I've also tried all stat commands I could find. Really wanted stat unitgraph to work but no dice. There was a version of this patch that had it but 0 games I've tested worked. You might be right with mod tools failing to find right function addresses.

UUU versions I've tried in general crash the game more than anything. Similarly 'spawn native console' in UEVR ended in a crash in all my attempts. Will play with that some more.

@mark-mon
Copy link
Contributor

As this just uses exec, I assume there's no way to control the font size? It's sure tiny in some cases.

@keton
Copy link
Contributor Author

keton commented Jan 26, 2024

Point of this approach is not to mess with game code. So no either something shows up or not. And so far in every game that it works it's apparent someone took a moment to put it in a place that does not collide with anything. Font is visible enough unless you also bind UI to hand movement but then you can bring the counters in front of your eyes. Worst case you can peek on your monitor.

At this point I've literally checked every UE game I have installed and the only problem is that in some of them stat fps does nothing but stat unit works in such cases. It's maybe not optimal as you need to know that 11ms == 90fps. IMO better than nothing or OpenXR that forces me to press ctrl+f2 for each game (I don't play VR close to my PC).

@mark-mon
Copy link
Contributor

I really like the change. It's really useful for testing new games and figuring out what your system can handle or not. Thanks again for making it. Let's hope it's merged in soon in the meantime I built your branch.

@praydog praydog merged commit bfd4cec into praydog:master Mar 3, 2024
1 check failed
@keton keton deleted the dev/performace_counters branch March 4, 2024 10:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants