Skip to content

Commit

Permalink
Merge pull request #1660 from frytaz/feat/remove-dtx-logs
Browse files Browse the repository at this point in the history
chore: disable dtx console.info logs which slow down render
  • Loading branch information
xeolabs committed Sep 9, 2024
2 parents 2f312b8 + 9690843 commit 10c97cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/viewer/scene/model/dtx/triangles/DTXTrianglesLayer.js
Original file line number Diff line number Diff line change
Expand Up @@ -822,14 +822,14 @@ export class DTXTrianglesLayer {
// object colors
textureState.texturePerObjectColorsAndFlags._textureData.set(tempUint8Array4, subPortionId * 32);
if (this._deferredSetFlagsActive) {
console.info("_subPortionSetColor defer");
//console.info("_subPortionSetColor defer");
this._deferredSetFlagsDirty = true;
return;
}
if (++this._numUpdatesInFrame >= MAX_OBJECT_UPDATES_IN_FRAME_WITHOUT_BATCHED_UPDATE) {
this._beginDeferredFlags(); // Subsequent flags updates now deferred
}
console.info("_subPortionSetColor write through");
//console.info("_subPortionSetColor write through");
gl.bindTexture(gl.TEXTURE_2D, textureState.texturePerObjectColorsAndFlags._texture);
gl.texSubImage2D(
gl.TEXTURE_2D,
Expand Down

0 comments on commit 10c97cb

Please sign in to comment.