diff options
author | Andrei Karas <akaras@inbox.ru> | 2012-04-26 01:14:22 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2012-04-26 01:14:22 +0300 |
commit | b328b78653133f05107eadba31572874e4c35e95 (patch) | |
tree | f426ca2b61fecab7dd115f2b12083e94502ae989 /src/gui/debugwindow.cpp | |
parent | a57ee0d8a7c729ea2887c71b5262dd0a6cb56a71 (diff) | |
download | mv-b328b78653133f05107eadba31572874e4c35e95.tar.gz mv-b328b78653133f05107eadba31572874e4c35e95.tar.bz2 mv-b328b78653133f05107eadba31572874e4c35e95.tar.xz mv-b328b78653133f05107eadba31572874e4c35e95.zip |
Add LPS counter to debug window (Logic per second).
Normally must be always 100 LPS.
Diffstat (limited to 'src/gui/debugwindow.cpp')
-rw-r--r-- | src/gui/debugwindow.cpp | 19 |
1 files changed, 11 insertions, 8 deletions
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() |