Skip to content
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

Samples stutter / miss beats when game is not focused #20747

Open
Haspamelodica opened this issue Oct 13, 2022 · 5 comments
Open

Samples stutter / miss beats when game is not focused #20747

Haspamelodica opened this issue Oct 13, 2022 · 5 comments

Comments

@Haspamelodica
Copy link
Contributor

Type

Cosmetic

Bug description

If the lazer window is unfocused, the metronome from the editor's Timing screen sometimes misses beats. I'm not sure if it's related, but the metronome also seems to fall behind over time. If the window is focused, everything is running fine.
I also played around with the frame limiter; it doesn't make a difference.

Screenshots or videos

Initial D - Running In The 90's Missed beats 14 (00:05), 21 (00:09), 42 (00:16):
2022-10-13.16-04-55.mp4
Stellamaris - Stage of Star Missed beats 24 (00:08), 48 (00:15), 63 (00:20), 76 (00:24), 89 (00:28):
2022-10-13.16-13-20.mp4

Version

2022.1008.2

Logs

Initial D - Running In The 90's

network.log
performance.log
runtime.log
updater.log

Stellamaris - Stage of Star

network.log
performance.log
runtime.log
updater.log

@Haspamelodica
Copy link
Contributor Author

Haspamelodica commented Oct 13, 2022

Further experimentation: I could reproduce this on any map I tried (10 or so), except toby fox - Quiet Water because it only has 32 beats in total. [EDIT: Could reproduce even on that map.] This includes maps with:

@integerrr
Copy link
Contributor

This is intended afaik as the game reduces fps on all threads including audio when unfocused, the same happens in gameplay with hitsound if you unfocus the game

@Haspamelodica
Copy link
Contributor Author

Is it really intentional that the game misses metronome clicks and hitsounds if it's unfocused? I think it would be better to just play them a bit late or early, if that's feasible.

@gustarmartins
Copy link

This also happens when game is running low on FPS.

@peppy
Copy link
Member

peppy commented Oct 18, 2022

Is it really intentional that the game misses metronome clicks and hitsounds if it's unfocused? I think it would be better to just play them a bit late or early, if that's feasible.

You're welcome to tweak the algorithm and see how it feels. You may then find that the reason for it not being done is that it sounds worse playing random out-of-time sounds as opposed to not playing at all. Changing to test it out is a very simple code change.

@bdach bdach changed the title Editor metronome stutters / misses beats when game is not focused Samples stutter / miss beats when game is not focused Oct 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants