-
Notifications
You must be signed in to change notification settings - Fork 7.1k
Description
Version
- Phaser Version: 3.70
- Operating system: Ubuntu 23.10
- Browser: Mostly visible on Chrome.
Description
When applying an effect to a sprite, the very first frame of the game has glitches.
It seems to happen whatever the Postfx pipeline applied we use.
The glitch can be hard to spot because it happens only on the first frame.
Example Test Code
To make the issue easier to see, I wrote a program that adds a postfx pipeline on a sprite, then removes it, then adds it back, etc... On each frame, I'm switching the effect on and off.
https://codepen.io/moufmouf/pen/abXjYRV
(Note: test this in Chrome)
The program works flawlessly with Phaser 3.60, but has glitches in Phaser 3.70.
Additional Information
The issue was first spotted on the Rex pipelines and an issue is opened there: rexrainbow/phaser3-rex-notes#395
However, it seems more likely the issue is related to Phaser.
My guess is that it is linked to the fact the creation of the effect is now delayed until its boot method, but I have no proof of that.
// @rexrainbow @LaP0573 @tongliang999
Let me know if I can do anything to help.