readPixels vs. getImageData

593 views
Skip to first unread message

Nicolas Garcia Belmonte

unread,
Feb 4, 2013, 1:52:15 PM2/4/13
to webgl-d...@googlegroups.com
Hi All,

I was just wondering if there are benchmarks out there comparing doing
a framebuffer render and then readPixels in WebGL vs. drawImage +
getImageData in 2D canvas. This would be just to read pixels, I'm
wondering if using texImage2D is faster than using 2D Canvas.

Thanks,

--
Nicolas Garcia Belmonte - http://philogb.github.com/

Jan Scheurer

unread,
Feb 4, 2013, 2:52:28 PM2/4/13
to webgl-dev-list
Hey,
i would think that using webgl is a lot faster.
If you would like to benchmark this you could create a benchmark on jsperf.com
when you share it we could see how different browsers compare to each other.

Best greetings 


2013/2/4 Nicolas Garcia Belmonte <phi...@gmail.com>
--
You received this message because you are subscribed to the Google Groups "WebGL Dev List" group.
To unsubscribe from this group and stop receiving emails from it, send an email to webgl-dev-lis...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.





--
dvlpn 3d stuff since ever

Gregg Tavares

unread,
Feb 4, 2013, 3:05:10 PM2/4/13
to webgl-d...@googlegroups.com
Just fyi, the answer is likely to change over time (meaning different versions of browsers will make different choices) and it will also change based on the size of the canvas
Reply all
Reply to author
Forward
0 new messages