phaserjs / phaser

Phaser is a fun, free and fast 2D game framework for making HTML5 games for desktop and mobile web browsers, supporting Canvas and WebGL rendering.
https://phaser.io
MIT License
37.19k stars 7.1k forks source link

Sprite "wobble" when panning scene camera. Seems related to use of setPipeline('Light2D') #6765

Open UncleChris100 opened 8 months ago

UncleChris100 commented 8 months ago

Version

Description

Sprites "wobble" when panning scene camera. Seemingly not quite settling on a static position. For sprites not using "Light2D" there is no issue.

Example Test Code

Here is an example CodePen that demonstrates my sprite "wobble" issue. After a lot of debugging, it seems to be related to setPipeline('Light2D'). Version 3.60 did not exhibit this issue but subsequent releases do.

https://codepen.io/UncleChris/pen/wvZMBWO

Additional Information

photonstorm commented 8 months ago

This sounds like a duplicate of #6698 ? Will keep both open for now just in case.

UncleChris100 commented 8 months ago

It could be the same issue although in my project they are on even-numbered pixel boundaries as are the sprites in my CodePen example above. Maybe this has to do with where the sprites are when the camera pans, offsetting them to an odd number.