[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Public WebGL] Support precompiled shaders as extensions

We can render in runtime lighmaps for hundrends of objects with thousands passes in less than 300-400ms in some cases :)

To give some examples. Those are links and how long it takes to make shader compilation on good windows laptop:takes 1,300ms to only compile shaders on my laptop with good gpu: http://tanx.playcanvas.com/

On 15 November 2016 at 20:29, Florian Bösch <pyalot@gmail.com> wrote:
On Tue, Nov 15, 2016 at 9:11 PM, Jukka Jylänki <jujjyl@gmail.com> wrote:
and 300-400 msecs is not uncommon

Just as a reference, gcc typically manages to finish a compile & link from a cold start (without precompiled headers) that includes stdio and a bunch of other standard libraries and several thousand lines of C within around 100ms... 

Python usually loads up textfiles with the source and converts them to binary code to run in the python runtime, it can run through hundreds of files and hundreds of thousands of lines of code in a few dozen milliseconds.

GLSL compiles sure do seem unnecessarily slow relatively.