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
Tested versions
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