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

Enable ImageBitmap if interface is present #4584

Merged
merged 3 commits into from
Aug 23, 2022

Conversation

slimbuck
Copy link
Member

Since we no longer flip images at load time in the engine (#3335) we can use ImageBitmap for loading images.

ImageBitmap performs more work off the main thread and should result in much smoother experiences for our users.

This PR was tested on a recent version of Chrome, Safari and Firefox.

@slimbuck slimbuck added enhancement area: graphics Graphics related issue labels Aug 23, 2022
@slimbuck slimbuck requested a review from a team August 23, 2022 15:05
@slimbuck slimbuck self-assigned this Aug 23, 2022
@mvaligursky
Copy link
Contributor

any concerns on older browses? For example:

@slimbuck
Copy link
Member Author

any concerns on older browses? For example:

Nope. That was an issue with 'flipY' option which we no longer need.

@slimbuck
Copy link
Member Author

Think I will try find an old version of firefox to test on though.

package.json Outdated Show resolved Hide resolved
@slimbuck slimbuck merged commit 0756e07 into playcanvas:main Aug 23, 2022
@slimbuck slimbuck deleted the image-bitmap branch August 23, 2022 15:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: graphics Graphics related issue
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants