Skip to content

Commit

Permalink
Fix slow down caused by per-frame update of model size; is only neces…
Browse files Browse the repository at this point in the history
…sary for volumes right now
  • Loading branch information
tribal-tec committed Feb 6, 2019
1 parent b01d1ed commit 4afa73c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion apps/BraynsViewer/BraynsViewer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ void BraynsViewer::display()
.getApplicationParameters()
.isBenchmarking())
{
ss << " @ " << _timer.perSecondSmoothed() << " FPS";
ss << " @ " << _timer.perSecondSmoothed() << " / "
<< _brayns.getEngine().getStatistics().getFPS() << " FPS";
}
setTitle(ss.str());

Expand Down
2 changes: 1 addition & 1 deletion engines/ospray/OSPRayScene.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,9 @@ bool OSPRayScene::_commitVolumeAndTransferFunction(
volume->commit();
// to reset accumulation if new blocks are added
markModified(false);
model.updateSizeInBytes();
}
}
modelDescriptor->getModel().updateSizeInBytes();
}
return rebuildScene;
}
Expand Down

0 comments on commit 4afa73c

Please sign in to comment.