Skip to content
Discussion options

You must be logged in to vote

Your diagnosis is exactly right — you're hitting the progress.Model's tag-versioning guard. It's not a bug, it's the mechanism that prevents stale FrameMsgs from glitching the animation when multiple SetPercent calls arrive in quick succession. The tag check discards messages older than the latest target, which is what happens when you drive progress updates faster than the frame-tick rate.

Why this happens with a file-copy loop

Every SetPercent(x) bumps the internal tag and schedules a tween. If you call SetPercent again before the previous tween emits its first FrameMsg, the tag bumps a second time — and when the tween's frame finally arrives, it's stamped with the old tag and gets disc…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by yifu
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants