[REQUEST][v5] Add progressive texture upload #4615
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.
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 withtexImage2D
. For larger images this could be done usingtexSubImage2D
uploading the texture over serval frames or viarequestIdleCallback
.Related:
The text was updated successfully, but these errors were encountered: