From b328b78653133f05107eadba31572874e4c35e95 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Thu, 26 Apr 2012 01:14:22 +0300 Subject: Add LPS counter to debug window (Logic per second). Normally must be always 100 LPS. --- src/gui/debugwindow.cpp | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) (limited to 'src/gui/debugwindow.cpp') diff --git a/src/gui/debugwindow.cpp b/src/gui/debugwindow.cpp index fa01b5aa8..aa551df24 100644 --- a/src/gui/debugwindow.cpp +++ b/src/gui/debugwindow.cpp @@ -176,19 +176,21 @@ MapDebugTab::MapDebugTab() : #endif mFPSLabel = new Label(strprintf(_("%d FPS"), 0)); + mLPSLabel = new Label(strprintf(_("%d LPS"), 0)); place(0, 0, mFPSLabel, 2); - place(0, 1, mMusicFileLabel, 2); - place(0, 2, mMapLabel, 2); - place(0, 3, mMinimapLabel, 2); - place(0, 4, mXYLabel, 2); - place(0, 5, mTileMouseLabel, 2); - place(0, 6, mParticleCountLabel, 2); - place(0, 7, mMapActorCountLabel, 2); + place(0, 1, mLPSLabel, 2); + place(0, 2, mMusicFileLabel, 2); + place(0, 3, mMapLabel, 2); + place(0, 4, mMinimapLabel, 2); + place(0, 5, mXYLabel, 2); + place(0, 6, mTileMouseLabel, 2); + place(0, 7, mParticleCountLabel, 2); + place(0, 8, mMapActorCountLabel, 2); #ifdef USE_OPENGL #ifdef DEBUG_OPENGL_LEAKS mTexturesLabel = new Label(strprintf("%s %s", _("Textures count:"), "?")); - place(0, 8, mTexturesLabel, 2); + place(0, 9, mTexturesLabel, 2); #endif #endif place.getCell().matchColWidth(0, 0); @@ -260,6 +262,7 @@ void MapDebugTab::logic() mParticleCountLabel->adjustSize(); mFPSLabel->setCaption(strprintf(mFPSText.c_str(), fps)); + mLPSLabel->setCaption(strprintf(_("%d LPS"), lps)); } TargetDebugTab::TargetDebugTab() -- cgit v1.2.3-60-g2f50