replaced bottom left toolbar text with field of view and frames per second
increased the original VAM UI scale slider maximum from 2x to 4x to allow 8K UI with original VAM scaling, Plugin must be in enabled/loaded, but deactivated state for this, removing the Plugin will reset this to the default 2x
activated hidden "Toggle Monitor"-mode button on toolbar, the button will stay visible when removing the Plugin will
After posting screenshots on Discord related to other things I was asked where I got the bottom left FPS counter from. It's part of this Plugin. I've been using that for a while already. Wasn't sure if anybody would want this and did not release it. Guess I was wrong. It's a nice quick way for me to check performance. Also in desktop mode I change the FoV (Field of View) a lot depending on the scene. So I removed the not very useful standard VaM text and replaced that.
I've tried various implementations for the FPS-counters. In the end I used one that updates every 30 frames. It is fast, simple and good enough for typical use cases. Only with very high FPS (200+) the precision isn't hat good anymore. The FPS number will turn red if under 58. If you want another threshold than 58 edit line 163 in the code of V6.
Control + Home -> Toggle active
Control + left/right -> change UI scale
Control + up/down -> change FoV (Field of View)
Control + page up -> set 3840x2160 resolution
Control + page down -> set 1920x1080 resolution
Users of older Versions - remember to update your session Plugin defaults to V4.
5K or higher resolution monitor?
The page up 3840x2160 resolution is hardcoded, but can be modified easily.
Use 7zip to extract the source code, edit the following code to your desired resolution, then zip it back into the var-file.
if (Input.GetKeyDown("page up"))
PickRes("3840x2160"); // <- just change this to your resolution
added checks to prevent unreachable UI with a resolution height lower than 2160 in case:
VAM was started with a low resolution > load Plugin in deactivated state
User tries to activate Plugin with a low resolution > refuse
User lowers resolution > deactivate
It should be possible to set resolutions above 3840x2160 if you have the hardware. The list of screen resolutions comes from Unity's Screen.resolutions. Anything lower than 1280x720 is removed because it is unusable.