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

Bugfix: Texture smoothing #636

Merged
merged 2 commits into from
Jun 13, 2019
Merged

Bugfix: Texture smoothing #636

merged 2 commits into from
Jun 13, 2019

Conversation

ndee85
Copy link
Contributor

@ndee85 ndee85 commented Jun 13, 2019

only mark texture as dirty when scaleMode differs from previous value

This PR (choose one or more, ✏️ delete others)

  • is a bug fix

Please include a summary in Change Log: Unreleased and thank yourself.

Describe the changes below:
Commit 7ea0dd2 a fix for #432 but marks texture always as dirty. Even if the smoothed value doesn't change at all. This fix now checks if the previous value actually differs to current. If it does, it marks the texture as dirty. This fixes some performance regressions for our framework that the commit introduced.

only mark texture as dirty when scaleMode differs from previous value
@samme
Copy link
Collaborator

samme commented Jun 13, 2019

Can you change to !== ?

@ndee85
Copy link
Contributor Author

ndee85 commented Jun 13, 2019

@samme
of course. Just applied the change.

@samme samme merged commit 7576f64 into phaserjs:master Jun 13, 2019
@samme samme added this to the 2.13.3 milestone Sep 14, 2019
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

Successfully merging this pull request may close these issues.

None yet

2 participants