Skip to content

Subviewport / AnimatedSprite2D Flicker Bug #1283

Description

@Flashfyre

Tested versions

  • Reproduceable in LTS v26.1 stable mono and all previous versions (likely still present in newest)

System information

Windows 10 - Redot LTS v26.1 Stable Mono

Issue description

There is an issue reproduceable with a subviewport and animated sprite 2D. Possibly depending on the image size, a race condition may happen when dynamically instantiating a scene with an animated sprite 2D rendered in a subviewport (or possibly even without the subviewport), causing an arbitrary texture in memory to display for 1 frame before it appears normally, causing an unpleasant flicker of the wrong texture.

Steps to reproduce

See MRP

Minimal reproduction project (MRP)

Using the MRP, simply observe as the scene switches between different background images, and it is immediately clear that some or most of the time, before switching to the next background, it flashes a different texture, though the logic to instantiate and remove these is simple and only switches out a new scene with an animated sprite 2D of a different image. There should be no flicker.

subviewport-bug.zip

Metadata

Metadata

Assignees

No one assigned

    Type

    Fields

    No fields configured for Bug.

    Projects

    Status
    Open

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions