diff --git a/client/src/three/components/ArmyModel.ts b/client/src/three/components/ArmyModel.ts index 3901cf448..4d2734d54 100644 --- a/client/src/three/components/ArmyModel.ts +++ b/client/src/three/components/ArmyModel.ts @@ -159,9 +159,9 @@ export class ArmyModel { updateAnimations(deltaTime: number) { const time = performance.now() * 0.001; - if (GRAPHICS_SETTING === GraphicsSettings.LOW) { - return; - } + // if (GRAPHICS_SETTING === GraphicsSettings.LOW) { + // return; + // } this.models.forEach((modelData) => { let needsMatrixUpdate = false; @@ -188,7 +188,10 @@ export class ArmyModel { for (let i = 0; i < modelData.mesh.count; i++) { const animationState = this.animationStates[i]; - if (GRAPHICS_SETTING === GraphicsSettings.MID && animationState === ANIMATION_STATE_IDLE) { + if ( + (GRAPHICS_SETTING === GraphicsSettings.MID && animationState === ANIMATION_STATE_IDLE) || + GRAPHICS_SETTING === GraphicsSettings.LOW + ) { continue; } diff --git a/client/src/three/components/InstancedModel.tsx b/client/src/three/components/InstancedModel.tsx index 9b42733cd..5e425b10f 100644 --- a/client/src/three/components/InstancedModel.tsx +++ b/client/src/three/components/InstancedModel.tsx @@ -74,7 +74,7 @@ export default class InstancedModel { tmp.userData.isInstanceModel = true; if (!enableRaycast) { - tmp.raycast = () => { }; + tmp.raycast = () => {}; } this.mixer = new AnimationMixer(gltf.scene);