message: Lazy initialization of glyph debugging mesh.
  Till now mesh was always initialized when TextElementsRenderer
  was initialized.
  Now it's not initialized until DEBUG_GLYPHS debug option is enabled.
diff: @@ -301,15 +301,8 @@ export class TextElementsRenderer {
  return;
  }
  - const debugGlyphs = debugContext.getValue("DEBUG_GLYPHS");
  - if (
  - debugGlyphs !== undefined &&
  - this.m_debugGlyphTextureCacheMesh !== undefined &&
  - this.m_debugGlyphTextureCacheWireMesh !== undefined
  - ) {
  - this.m_debugGlyphTextureCacheMesh.visible = debugGlyphs;
  - this.m_debugGlyphTextureCacheWireMesh.visible = debugGlyphs;
  - }
  + this.updateGlyphDebugMesh();
  +
  for (const textRenderer of this.m_textRenderers) {
  textRenderer.textCanvas.render(camera);
  }
  @@ -867,6 +860,27 @@ export class TextElementsRenderer {
  this.m_textRenderers
  );
  + this.m_viewUpdateCallback();
  + });
  + }
  +
  + private updateGlyphDebugMesh() {
  + const debugGlyphs = debugContext.getValue("DEBUG_GLYPHS");
  + if (debugGlyphs === undefined) {
  + return;
  + }
  +
  + if (debugGlyphs && this.m_debugGlyphTextureCacheMesh === undefined) {
  + this.initializeGlyphDebugMesh();
  + }
  + assert(this.m_debugGlyphTextureCacheMesh !== undefined);
  + assert(this.m_debugGlyphTextureCacheWireMesh !== undefined);
  +
  + this.m_debugGlyphTextureCacheMesh!.visible = debugGlyphs;
  + this.m_debugGlyphTextureCacheWireMesh!.visible = debugGlyphs;
  + }
  +
  + private initializeGlyphDebugMesh() {
  const defaultFontCatalog = this.m_textRenderers[0].textCanvas.fontCatalog;
  // Initialize glyph-debugging mesh.
  @@ -910,9 +924,6 @@ export class TextElementsRenderer {
  this.m_debugGlyphTextureCacheMesh,
  this.m_debugGlyphTextureCacheWireMesh
  );
  -
  - this.m_viewUpdateCallback();
  - });
  }
  /**
  