Skip to content

Commit

Permalink
Merged PR 90403: fix: gpu profiler fix for readPixel calls
Browse files Browse the repository at this point in the history
  • Loading branch information
hnn0003 committed Jun 1, 2020
1 parent a43290a commit 3d364cc
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"changes": [
{
"packageName": "@bentley/imodeljs-frontend",
"comment": "Gpu profiler fix for readPixel calls",
"type": "none"
}
],
"packageName": "@bentley/imodeljs-frontend",
"email": "[email protected]"
}
8 changes: 4 additions & 4 deletions core/frontend/src/render/webgl/SceneCompositor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -857,11 +857,11 @@ abstract class Compositor extends SceneCompositor {

this.target.beginPerfMetricRecord("Render Translucent Layers", true);
this.renderLayers(commands, false, RenderPass.TranslucentLayers);
this.target.endPerfMetricRecord();
this.target.endPerfMetricRecord(true);

this.target.beginPerfMetricRecord("Render Overlay Layers", true);
this.renderLayers(commands, false, RenderPass.OverlayLayers);
this.target.endPerfMetricRecord();
this.target.endPerfMetricRecord(true);

this.target.popViewClip();
}
Expand All @@ -870,10 +870,10 @@ abstract class Compositor extends SceneCompositor {
return;

// Now populate the opaque passes with any pickable world overlays
this.target.beginPerfMetricRecord("Overlay Draws");
this.target.beginPerfMetricRecord("Overlay Draws", true);
commands.initForPickOverlays(sceneOverlays, overlayDecorations);
if (commands.isEmpty) {
this.target.endPerfMetricRecord(); // End Overlay Draws record if returning
this.target.endPerfMetricRecord(true); // End Overlay Draws record if returning
return;
}

Expand Down

0 comments on commit 3d364cc

Please sign in to comment.