Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

Cursor input lags #27602

Closed
BenCheung0422 opened this issue Mar 13, 2024 · 2 comments
Closed

Cursor input lags #27602

BenCheung0422 opened this issue Mar 13, 2024 · 2 comments

Comments

@BenCheung0422
Copy link

BenCheung0422 commented Mar 13, 2024

Type

Performance

Bug description

Sometimes when playing with my mouse cursor, the cursor may suddenly stop and continue its relative movements (without teleportation), or with slow movements for a certain span, varies from a few hundreds to a few seconds. From the recordings, comparing the properties between tablet pen (as in #27227) and mouse, it is possible that all of the cases mentioned are related to the drop/loss in input frames. This may be similar to #27488, but I am not sure.

For example, if there is a loss in input frame occurring for tablet pen, the next frame would be the new absolute position corresponding to the position of the pen cursor; if there is a loss in input frame occurring for mouse, the next frame would be the relative movement of the mouse cursor as the previous frame including the data of the cursor movement is lost. Please note that this is just my guess.

Furthermore, from the latest recording without stats overlay, no performance input is logged, which means no slow frames are detected, and no logs can be found around the time, even in the system logs. It is possible that the criteria for incidents might be hard to be spotted out.

The causes of this problem might not be related to GC (as in the two other videos attached with statistics overlay, but it is possible that the overlay causes the lags instead), and may possibly be located by profiler/debugger (possibly internal causes).

Screenshots or videos

Slow movements (for around a second)

2024-03-13.21-25-08.out.mp4

For the video above, I used 2880x1620 DSR for my 1920x1080 monitor recorded with OBS, so that I can put the 2 console windows (smaller) on top on the full-screen game window in output. The font size of the consoles is also changed from 12 (default) to 7 to render more text.

Slow movements (for around 2 seconds; recorded in 2024.302.1)

2024-03-11.23-00-00.out.mp4

Sudden stop (blue circles "1" to "2"; recorded in 2024.302.1)

2024-03-11.22-26-13.out.mp4

Version

2024.312.1

Logs

Logs from the latest recording above

logs-1710333379.zip

@EVAST9919
Copy link
Contributor

ppy/osu-framework#6181

@frenzibyte
Copy link
Member

ppy/osu-framework#6181

Not relevant apparently, see #27227 (comment).

@ppy ppy locked and limited conversation to collaborators Mar 14, 2024
@peppy peppy converted this issue into discussion #27608 Mar 14, 2024

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants