Skip to content

Commit

Permalink
performance for real-time plot improved
Browse files Browse the repository at this point in the history
  • Loading branch information
chrxh committed Sep 23, 2024
1 parent 0fe2591 commit 8351f7c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion source/Gui/EditorModel.h
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@ class _EditorModel
float _pencilWidth = 3.0f;
int _defaultColorCode = 0;
bool _rolloutToClusters = true;
bool _forceNoRollout = false;;
bool _forceNoRollout = false;
};
1 change: 1 addition & 0 deletions source/Gui/StatisticsWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -511,6 +511,7 @@ void _StatisticsWindow::processBackground()
auto timepoint = std::chrono::steady_clock::now();
auto duration = _lastTimepoint.has_value() ? static_cast<int>(std::chrono::duration_cast<std::chrono::milliseconds>(timepoint - *_lastTimepoint).count()) : 0;
if(!_lastTimepoint || duration > LiveStatisticsDeltaTime) {
_lastTimepoint = timepoint;
auto rawStatistics = _simController->getRawStatistics();
_histogramLiveStatistics.update(rawStatistics.histogram);
_timelineLiveStatistics.update(rawStatistics.timeline, _simController->getCurrentTimestep());
Expand Down

0 comments on commit 8351f7c

Please sign in to comment.