-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Lag when USB device goes to sleep/wakes up #31325
Comments
This is more or less ppy/osu-framework#6181 again, and will likely be resolved along with it (if that one ever gets resolved). |
Correct, but this is a useful repro case. @invtblWalrus could I ask you to do some testing for me? I see you are using single-threaded mode. Could you test in multithreaded and compare the behaviour? (Please provide screen recordings and logs.) Could you also test both threading modes in SDL3? Set the user environment variable |
No problem. 2 videos attached, one is turning on and off my mouse with osu!lazer running in single-threading, other in multi-threaded. The issue is present in both. Mousedisconnected-Singlethread-compressed.mp4Mousedisconnected-Multithread-compressed.mp4I did both of these with the user environment variable set to 1, though I'm not 100% sure I did that correct (maybe this screenshot will tell you I did something wrong.) Logs as well attached. Let me know if there's anything else I can provide to assist. |
It's not set correctly, you can tell by the "Mode: Borderless (SDL2)" above the FPS meters. Make sure that there aren't any spaces around the variable name and value. Type out the values as copying can sometimes include trailing spaces. |
I think I just forgot to hit OK on the second dialogue so it didn't set correctly, oops. Attaching 2 new videos here: Mousedisconnect-Sdl3-Single.mp4Mousedisconnect-Sdl3-Multi.mp4Fresh logs: |
Type
Performance
Bug description
Bit of a weird one, and it took me a while to figure out what was happening at all. It seems that lazer lags when a USB device (in this case my mouse) goes to sleep or wakes up. My temporary workaround is to just turn my mouse off entirely and use my tablet, but this doesn't happen in stable, I can even disconnect and reconnect my mouse entirely without the game stuttering.
I'd prefer to leave my mouse on during gameplay for when I need to tab to my other monitor/click specific UI elements/etc.
Can provide additional details if they'll help.
For clarity, I slowed down the first video to make the graphs easier to see at 60fps.
Screenshots or videos
Osulazerlag1-2.mp4
osulazerlag2.mp4
Version
2024.1224.1
Logs
compressed-logs.zip
The text was updated successfully, but these errors were encountered: