Kenneth Russell
unread,Aug 27, 2015, 4:36:32 PM8/27/15Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Edgar Chen, Chromium-dev, Justin Novosad, Stephen White
It's not clear whether the time's being spent in decompression of the
PNG or uploading of the texture.
We should ship the ImageBitmap API which should allow the
decompression to occur in the background, rather than during texture
upload time. There are a few embarrassingly old bugs about this:
crbug.com/249384 ,
crbug.com/249382 .
> Is there anything else we can do to improve the performance in the meantime?
Investigate using the "crunch" texture compressor and doing the
transcoding to one of the compressed texture formats in a web worker,
then transferring the compressed texture data to the main thread using
an ArrayBuffer and uploading using compressedTexImage2D. See
https://github.com/toji/texture-tester for an example. This should
eliminate a large portion of your texture upload cost from the main
thread, and is a portable technique across browsers.
-Ken