Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[4.0.0 - beta 6] Jerky movement #7065

Open
SBCGames opened this issue Feb 28, 2025 · 0 comments
Open

[4.0.0 - beta 6] Jerky movement #7065

SBCGames opened this issue Feb 28, 2025 · 0 comments

Comments

@SBCGames
Copy link

Version

  • Phaser Version: 4.0.0 - beta 6
  • Operating system: all
  • Browser: all

Description

Slowly moving objects move very jerky. See sandbox example here: https://phaser.io/sandbox/kRraoccz
Probably, the position is rounded to pixels - I found this sentence in release notes for beta 5:

Limit roundPixels to only operate when objects are axis-aligned and unscaled. This prevents flicker on transforming objects.

And indeed, if I rotate or scale the object, then it moves smoothly. Also, changing engine version to 3.88.2 works.
Release notes for beta 6 say, that pixels rounding was removed from many places, but it looks it still remains active here.

I have complex animation in the game and part of the objects is moving smoothly (those, that also rotate) and part moves jerky.

Example Test Code

See sandbox example here: https://phaser.io/sandbox/kRraoccz

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

No branches or pull requests

1 participant