Add performance stats overlay in status bar

Show FPS, frame time, visible/total objects, and visible/total
triangles in the status bar. Toggled via Settings > Show Performance
Stats, persisted in app settings.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Dion Moult
2026-04-11 20:05:50 +10:00
parent bfac12dbe7
commit 6f6bebf387
8 changed files with 84 additions and 0 deletions
+5
View File
@@ -34,8 +34,12 @@ public:
QString geometryLibrary() const;
void setGeometryLibrary(const QString& value);
bool showStats() const;
void setShowStats(bool value);
signals:
void geometryLibraryChanged(const QString& value);
void showStatsChanged(bool value);
private:
AppSettings();
@@ -43,6 +47,7 @@ private:
void persist();
QString geometry_library_;
bool show_stats_ = false;
};
#endif // APPSETTINGS_H