perf: skip debug render
This commit is contained in:
parent
51d8f333ed
commit
a54aed9b89
|
@ -177,6 +177,7 @@ export default class Entity {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
if (this.debug.alpha) {
|
||||||
if (this.entity.Collider) {
|
if (this.entity.Collider) {
|
||||||
this.colliderAabb.redraw(this.entity.Collider.aabb);
|
this.colliderAabb.redraw(this.entity.Collider.aabb);
|
||||||
}
|
}
|
||||||
|
@ -186,6 +187,7 @@ export default class Entity {
|
||||||
if (this.isMainEntity) {
|
if (this.isMainEntity) {
|
||||||
this.interactionAabb.redraw(this.entity.Interacts.aabb());
|
this.interactionAabb.redraw(this.entity.Interacts.aabb());
|
||||||
}
|
}
|
||||||
|
}
|
||||||
if (this.attached || !container) {
|
if (this.attached || !container) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user