Skip to content

Fix missing/duplicated flying scores - #44

Open
Jonas00000 wants to merge 1 commit into
ErisApps:masterfrom
Jonas00000:master
Open

Fix missing/duplicated flying scores#44
Jonas00000 wants to merge 1 commit into
ErisApps:masterfrom
Jonas00000:master

Conversation

@Jonas00000

Copy link
Copy Markdown

What changed

Flying scores are now spawned immediately instead of using SpawnFlyingScoreNextFrame.

The original method keeps a reference to a pooled CutScoreBuffer for one frame.
If that buffer is reused before the coroutine resumes, the effect can read another note's score and position.
This causes overlapping or duplicated effects, making one score appear to be missing.

Immediate spawning ensures that the effect is initialized while the buffer still belongs to the correct note.

Related Beat Saber bug:
Meivyn/BeatSaberBugs#26

Testing

Tested for around four hours on Beat Saber 1.44.1.
The problem previously occurred at least twice per map and did not occur again with this patch.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant