regl-project / regl

👑 Functional WebGL
https://regl-project.github.io/
MIT License
5.23k stars 323 forks source link

Investigate performance of video uploading #350

Open mikolalysenko opened 8 years ago

mikolalysenko commented 8 years ago

We should figure out what is the fastest way to upload videos in WebGL and then make regl always take this path whenever possible. There are basically two functions:

  1. gl.texImage2D
  2. gl.texSubImage2D

We should make a benchmark for videos and try out both of them to see which is the fastest. Also we should modify the texture API to check if there is a way to short circuit all the argument parsing logic and upload directly so that we can do this as efficiently as possible.

usefulthink commented 8 years ago

Florian Bösch (@pyalot) did a lot of investigation into this: http://codeflow.org/issues/slow_video_to_texture/

Complete with benchmarks and historical data (a lot more information about this can be found in the linked issues).

pyalot commented 8 years ago

There's also by now a bunch of other video upload performance tests written by other people. The one I published is a bit dated.

jwerle commented 8 years ago

@pyalot where can we see these newer performance tests ?

pyalot commented 8 years ago

I've found one there: http://krpano.com/ios/bugs/ios8-webgl-video-performance/

jwerle commented 8 years ago

ah, klaus's page ! we've seen this thanks :]

jwerle commented 7 years ago

Adding known and relevant tickets with their up-to-date status for this issue on various platforms.

NEW: Chromium#612542

TODO RESOLVED TOTAL
5 6 11

Chromium

Firefox

Webkit

Internet Explorer