r133 getProgramInfoLog performance issue
See original GitHub issueDescription
When benchmarking r132 vs r133 on the same project, the first frame that initialise things with ProgramInfoLog is six times slower in r133.
To Reproduce
Steps to reproduce the behavior:
- Use one of your existing three scene or project
- Change the build from r132 to r133 r132 : https://raw.githubusercontent.com/mrdoob/three.js/r132/build/three.min.js r133 : https://raw.githubusercontent.com/mrdoob/three.js/r133/build/three.min.js
Code
<script src="https://raw.githubusercontent.com/mrdoob/three.js/r132/build/three.min.js"></script>
<!-- VS -->
<script src="https://raw.githubusercontent.com/mrdoob/three.js/r133/build/three.min.js"></script>
Screenshots
r125 : ( performance are stable ) up to r132
r133 : six time slower ( average )
Platform:
- Device: [Desktop]
- OS: [Windows]
- Browser: [Chrome]
- Three.js version: [r133]
Issue Analytics
- State:
- Created 2 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
10x shader compilation time regression from r132 to r133 ...
If the regression disappears by using WebGL1Renderer , SRGB8_ALPHA8 is the problem. I'm not sure why getProgramInfoLog() shows an increase in ...
Read more >getProgramInfoLog performance issue - three.js forum
Hi All, I have a very basic scene with 3 objects and I remarked that the threejs loads very slowly, it is strange...
Read more >THREE.WebGLProgram: shader error: gl.getProgramInfoLog ...
Better not to use texture as a name of a uniform, as three.js internally substitutes it and uses as a function.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
This could be related to #22631.
getProgramInfoLog()
might appear to take longer becausetexImage2D
is blocking.@swingingtom Do you use
sRGBEncoding
for the textures in your scene? Try using theWebGL1Renderer
to check if loading times return to normal.@vanruesc I confirm this is related to https://github.com/mrdoob/three.js/issues/22631
Changing
texture.encoding = sRGBEncoding;
for something else, or keepingsRGBEncoding
and switching toWebGL1Renderer
resolve the blocking time on r133.