Hello Forum I am new to Three and tried out an example project.
When using the composer to render SSAO i receive massive performance drops. But even when not adding SSAO to the composer, the FPS drop to the floor. So I suspect the cause does not lie in the SSAOPass, but in my implementation of the composer or something else.
Does anyone spot any Problems that might cause these issues?
Please excuse the unclean code (I am not an experienced coder either)
I also ran into the problem that I can’t manage to have a Skybox and also nice reflections on my chrome parts… But I might do another Post on that topic
Hmm, are you maybe running on a laptop with integrated graphics instead of a dedicated GPU?
Bloom/SSAO-like passes are somewhat demanding, but it shouldn’t tank your FPS in half, unless your GPU just can’t handle it. You could try setting powerPreference to high-performance in the options object of the WebGLRenderer constructor. See docs here: three.js docs
Even when not using the Bloom/SSAO-Pass but using the composer, i am experiencing low FPS. So i thought it had to do something with the composer and not the actual effects used.
No SSAO, No Bloom, but using the composer → 30 FPS
I replaced the SSAARenderPass with the normal RenderPass. I think your GPU doesn’t like that very much. It’s either that, or the powerPreference setting I suggested earlier.
It surprises me that Three JS is so demanding for my Laptop… Using PlayCanvas or Babylon JS the Performance problems are way smaller
Thats why i thought i just used the wrong settings…