Skip to content

AVM1: Delay clip removals when an unload listener is present#8873

Merged
kmeisthax merged 6 commits intoruffle-rs:masterfrom
CUB3D:delayed_clip_removal
Feb 6, 2023
Merged

AVM1: Delay clip removals when an unload listener is present#8873
kmeisthax merged 6 commits intoruffle-rs:masterfrom
CUB3D:delayed_clip_removal

Conversation

@CUB3D
Copy link
Contributor

@CUB3D CUB3D commented Dec 20, 2022

As stated in #1535, when a clip is removed in AVM1, it may be retained for an extra frame if it contains an unload handler.

This is an attempt to make the behavior of Ruffle better match that of Flash Player by moving these clips to a negative depth, that will be removed at the start of the next frame.

This matches the behavior in the example given in #1535 and resolves the issue in #2287.

TODOs:

@CUB3D CUB3D marked this pull request as ready for review December 22, 2022 15:05
@CUB3D CUB3D force-pushed the delayed_clip_removal branch from ea4338b to 8d1fdd7 Compare January 7, 2023 00:58
@Lord-McSweeney
Copy link
Collaborator

This might fix #5928.

@CUB3D CUB3D force-pushed the delayed_clip_removal branch from 93ec622 to b884609 Compare February 3, 2023 00:36
@kmeisthax kmeisthax enabled auto-merge (rebase) February 6, 2023 17:41
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.

5 participants