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

Add cancel to ResourceManager #328

Open
mnordine opened this issue Nov 28, 2019 · 2 comments
Open

Add cancel to ResourceManager #328

mnordine opened this issue Nov 28, 2019 · 2 comments

Comments

@mnordine
Copy link
Contributor

No description provided.

@AndrewLugg
Copy link
Collaborator

I have put some work in on this feature, it will currently be able to cancel assets that are downloaded using the imageBitmap feature as it uses a HTTP request, I haven't got the cancel working on ImageElement as Image elements are trickier to cancel.
I got it working with Texture Atlas's as well.

Currently doesn't do anything with other assets such as audio.

It will also add progress for images, which will return a percentage completed of the image if it supports it.

https://github.com/bp74/StageXL/tree/cancellable-assets

@mnordine
Copy link
Contributor Author

mnordine commented May 31, 2022

@AndrewLugg I have this working as well, you can see some commits here: https://github.com/mnordine/StageXL/commits/cancellation

9d87653
a6590c7
a945fdc
e66e200
ed69280
639398e
ec4c48f
ae79f6a

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

2 participants