perf: skip debug render

This commit is contained in:
cha0s 2024-09-12 20:00:20 -05:00
parent 51d8f333ed
commit a54aed9b89

View File

@ -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;
} }