Frame rate bug with High Polling rate mouse on Unity 6 beta branch
tracked
ascfire
- Open your VRChat menu.
- Use a High Polling rate (around 1000 High Polling rate).
- Move your mouse rapidly across the menu to see if your frame rate drops.
- If it drop, you got the bug.
Log In
_
_tau_
Merged in a post:
[1865] Looking around with a mouse causes lag.
Lenr
In desktop mode, in any world, if you look around my moving your mouse fast-ish, the framerate can drop massively. It only happens while moving the mouse.
1kHz polling rate, This only lags the game, not other applications.
CPU (or individual thread) and GPU usage doesn't increase while moving the mouse, in fact it seems to drop while the lag spike is happening.
ie.: staying still: 200fps, ~ 50% cpu, 50% gpu
looking around at speed: ~50fps (depending on speed), ~30% cpu, 15% gpu
(overall system usage)
No individual cpu core gets even remotely maxed out, didn't happen in earlier stable versions.
Similar in feel and probably causality to this issue: https://feedback.vrchat.com/open-beta/p/1865-lag-spike-while-moving-the-mouse-with-the-menu-open
Tho, the lagspike isn't as massive as that, it's still noticeable. It reduces your framerate while moving the mouse to ~25% of the original framerate.
_
_tau_
Merged in a post:
[1865] Lag spike while moving the mouse with the menu open.
Lenr
If you open either the quick or the main menu, and move your mouse at a reasonable speed (or fast), you'll experience a massive constant FPS drop while moving it. Doesn't happen if you move it slowly tho.
1kHz polling rate mouse, parralax background on the menu, only lags the game, overall PC CPU core / GPU usage remains stable.
funkerwolf
I checked on a few mice myself, no problems. Maybe the issue is only for those still using the outdated Windows 10? In 11, native support for large values was added a long time ago, and the load issues from this have also been fixed. Has anyone tried connecting mice to USB 3.0+ ports? And why do you even need a high USB polling rate, it's not even clear.
Lenr
Doesn't just happen in the menu, it just has a more noticeable effect there.
Happens when just looking around fast in a world, but it's just less of an effect (but still quite annoying! I tried those surfing worlds, and it just wasn't viable like this.)
Seems to happen even at lower polling rates too, it just has less of an effect.
I set my polling rate down to 125Hz and it still had a noticeable effect while moving it around fast.
Both with the menu open, and just in the world looking around.
Still tied to polling rate, as reducing it from 1kHz to 125Hz reduced the effect.
So:
- 1kHz: 200fps regular, 10fps while moving the mouse in the menu fast
- 125Hz: 200fps regular, 150fps while moving the mouse in the menu fast (around the same speed as i did on 1kHz setting)
It's even less noticeable while just looking around in a world fast, but it's still there.
And setting it to 500Hz the effect becomes more noticeable, even tho i wouldn't consider this a high polling rate.
(In fact 1kHz should be seen as a standard polling rate tbh, seeing as we nowadays have mice capable of 4kHz or 8kHz rates too.)
So setting your mouse to a lower polling rate isn't really an actual solution, it just reduces the effect, but the problem is still there.
MissingNO123
This doesn't seem VRChat-specific as I've had this happen on many different games and on multiple PCs, the only real "solution" is to configure your mouse to lower its polling rate outside of games.
WubTheCaptain
I wonder if this bug is even Unity 6 specific. As far as I understand it, it can occur on Unity 2022.3.22f1 and becomes especially worse with the avatar debug menu open and/or on avatars with lots of physbone parameters (any parameter values updating frequently in general - velocities from looking around / moving are one of these).
WubTheCaptain
_
_tau_
updated the status to
tracked
_
_tau_
Merged in a post:
Significant FPS drops when moving around with a high polling rate mouse.
Kitshay
- Open VRChat.
- Open quick menu on desktop with FPS indicator enabled.
- Move high polling rate mouse around (In my case 2K Hz).
_
_tau_
Merged in a post:
[1864] [unity-6] High polling rate mice will cause performance degeration
≻Lincoln
When using a mouse with 800 dpi at various polling FPS will drop
Note: Most games already don't have support for 8k polling rate, so this could generally be disregarded.
Tests were conducted by moving mouse in a circular motion for roughly ~30 seconds then I would record my FPS
Photo Viewer
View photos in a modal
Load More
→