From c1b93f18228e1c051a3941d15f6bd31a3a682e2d Mon Sep 17 00:00:00 2001 From: Jason Johnston Date: Thu, 12 Mar 2020 20:21:03 -0600 Subject: [PATCH] perf: skip updating children of inactive wrist-mounted ui --- .../src/facade/wrist-mounted-ui/ContentContainer.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/troika-xr/src/facade/wrist-mounted-ui/ContentContainer.js b/packages/troika-xr/src/facade/wrist-mounted-ui/ContentContainer.js index cff96c6f..7080dfb3 100644 --- a/packages/troika-xr/src/facade/wrist-mounted-ui/ContentContainer.js +++ b/packages/troika-xr/src/facade/wrist-mounted-ui/ContentContainer.js @@ -58,9 +58,9 @@ export class ContentContainer extends Object3DFacade { super.afterUpdate() } - // shouldUpdateChildren () { - // return !!this.active - // } + shouldUpdateChildren () { + return !!this.visible + } describeChildren() { let kids = this._kidsTpl || (this._kidsTpl = [