Hi all,
We are currently upgrading to the latest three version.
After upgrading from 135 to 136, I realised a massive time increase (from 1 sec to about 4 sec) of the initial scene loading on my local development machine (after loading, the scene still works).
We are using HDR lighting and I guess the reason is the change around the RGBELoader and the different encodings.
I think we are not doing anything special when loading the HDR (HDR is about 1,5 MB). Following our code:
const pmremGenerator = new PMREMGenerator(renderer);
pmremGenerator.compileCubemapShader();
if (scene.environment) { scene.environment.dispose() }
// 3D Environment
new RGBELoader()
.setDataType(HalfFloatType)
.load(`data/HDRI/${file}.hdr`, function (texture : CubeTexture ) {
const envMap = pmremGenerator.fromEquirectangular( texture ).texture;
EnvironmentManager.hdrTexture = envMap;
scene.environment = envMap;
texture.dispose();
pmremGenerator.dispose();
});
Has anybody else encountered a similar problem after the upgrade?
Is there anything I can do about it, or do I have a problem in the loading code?
Please let me know if you need additonal information.
Thanks in advance for any help,
Heinz