Skip to content

Commit

Permalink
low
Browse files Browse the repository at this point in the history
  • Loading branch information
ponderingdemocritus committed Dec 16, 2024
1 parent 6fc4307 commit e91c47d
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
11 changes: 7 additions & 4 deletions client/src/three/components/ArmyModel.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand All @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion client/src/three/components/InstancedModel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default class InstancedModel {
tmp.userData.isInstanceModel = true;

if (!enableRaycast) {
tmp.raycast = () => { };
tmp.raycast = () => {};
}

this.mixer = new AnimationMixer(gltf.scene);
Expand Down

0 comments on commit e91c47d

Please sign in to comment.