I made an interactive 3D car showcase with Astro for my bachelors thesis. It's currently suffering from performance issues.
I work with some downloaded 3D-models that are high quality and selfmade lowpoly 3D-models. The lowpoly ones still need 2 sec to render.
I use the draco and gltfloader to load the models into a canvas-tag.
gltfLoader.load('./models/car/body/body_blue.gltf', (gltf) => {
gltf.scene.scale.set(5, 5, 5);
gltf.scene.position.set(0, 4, 0);
scene.add(gltf.scene);
});
const renderer = new WebGLRenderer({ canvas: canvas, alpha: true });
renderer.shadowMap.enabled = true;
renderer.shadowMap.type = PCFSoftShadowMap;
renderer.setSize(sizes.width, sizes.height);
renderer.setPixelRatio(Math.min(window.devicePixelRatio, 2));
Does anyone have advice on this? What can I do to make it faster?