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

[REQUEST][v5] Add progressive texture upload #4615

Closed
m9dfukc opened this issue Jan 16, 2018 · 4 comments
Closed

[REQUEST][v5] Add progressive texture upload #4615

m9dfukc opened this issue Jan 16, 2018 · 4 comments
Labels
📢 Accepting PRs Would welcome a PR from the community. Stale Previously “Won’t Fix”, bots should tag with this for inactive issues or pull-requests.

Comments

@m9dfukc
Copy link

m9dfukc commented Jan 16, 2018

Targets:
Pixi.js v5
WegGl 2
Firefox >= 42, Chrome >= 50, Opera >= 39

Problem description:
Certain applications - VR for example (I know, not really the target audience of pixi.js) - require realtime assets loading without dropping frames. Therefore we need a way to decode and upload images in a non blocking manner.

Proposal:
With createImageBitmap we already got a async method of decoding an image in the two major browsers. The pixi.js support for ImageBitmap is already in the pipeline for v5 although still not properly implemented. The second part of this would be the progressive texture upload which is currently done using one pass with texImage2D. For larger images this could be done using texSubImage2D uploading the texture over serval frames or via requestIdleCallback.

Related:

@ivanpopelyshev
Copy link
Collaborator

ivanpopelyshev commented Jan 16, 2018

I guess its time to discuss it in issues :) Do the thing, I'll make sure that it will be approved.

Gonna say it one more time - that's why I've fought for #4507, I've spent half year to think about it, and it took 3 weeks of heated discussion to merge it. Now we have a base to implement things like that, it allows to add custom uploaders without code obfuscation.

@themoonrat themoonrat added Plugin: Loader 📢 Accepting PRs Would welcome a PR from the community. labels Jul 2, 2018
@themoonrat
Copy link
Member

Hi @m9dfukc - Did you get a chance to look at this? Sounds useful!

@stale
Copy link

stale bot commented Feb 24, 2019

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the Stale Previously “Won’t Fix”, bots should tag with this for inactive issues or pull-requests. label Feb 24, 2019
@lock
Copy link

lock bot commented Feb 24, 2020

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Feb 24, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
📢 Accepting PRs Would welcome a PR from the community. Stale Previously “Won’t Fix”, bots should tag with this for inactive issues or pull-requests.
Projects
None yet
Development

No branches or pull requests

4 participants