Closed without-ordinary closed 10 months ago
Turns out it was a bug with Unity's input system, as soon as the player is removed it spams Navigate events 50 times a frame. Player input isn't even on the player so I'm not sure why it happens.
The lag is from me searching for navigable UI on each event, it only does this if nothing is currently selected. Since there's no UI to select, it just does this 50 times a frame.
Was hard to figure out as I had to do some remote profiling as this bug doesn't trigger at all on PC. Got it fixed as of 9853802d
Describe the bug After getting DV'd by the City dragon, FPS drops to 5-6 and CPU load is pegged (possible to 100% single core).
To Reproduce Steps to reproduce the behavior:
Expected behavior Not have massive performance impact while CV'd.
Screenshots The default Stream screenshot does not capture the overlay, so nothing to see.
Desktop (please complete the following information):
Additional context If something blocks the camera's view of the dragon and causes culling, the issue stops.
Saw this reported a few times on the Discord. Was able to repo on my Deck while testing other things.