HTML5 Video WebGL Performance Test - krpano.com

文章推薦指數: 80 %
投票人數:10人

This example plays a HTML5 video via WebGL. There is a 'requestAnimationFrame' loop and every frame the HTML5 video will be uploaded via 'texImage2D'. When the ... HTML5VideoWebGLPerformanceTest ThisexampleplaysaHTML5videoviaWebGL. Thereisa'requestAnimationFrame'loopandeveryframetheHTML5videowillbeuploadedvia'texImage2D'. Whenthevideowillbepaused,therewillbenovideouploadsbuttheWebGLwillkeeprendering. Toseethatsomethingisrenderingthereisahue-rotationeffect. OniOS8beta4+5andalsointheOSX10.10Safarithevideotextureuploadsarewaytooslow! ThereisprobablyaslowGPU-to-CPU-to-GPUpathforthevideoframehere...? WebkitBugreports: https://bugs.webkit.org/show_bug.cgi?id=135387 https://bugs.webkit.org/show_bug.cgi?id=129626 OtherHTML5VideoWebGLProblems: HTML5VideoWebGLCORS(Cross-Domain)Test Log: Pause Resume Testnotes-press'Pause'toseetheFPSincreaseduethepausedvideo! Thereareno'texImage2D'callswhenthevideoispaused,butWebGLitselfisstillrenderingeveryframe(hue-rotationeffect). Sometestresults: DeviceOSBrowser~Framerate iPadAiriOS8beta4+5Safari18FPS iPad3iOS8beta4+5Safari2FPS MacMini2011OSX10.10Safari25FPS MacMini2011OSX10.10Chrome3660FPS MacMini2011OSX10.10Firefox3150FPS WindowsDesktopWindows7Chrome3660FPS WindowsDesktopWindows7Firefox3148FPS GalaxyS5Android4.4Chrome3460FPS GalaxyS5Android4.4Firefox318FPS



請為這篇文章評分?