diff options
author | Andrei Karas <akaras@inbox.ru> | 2018-09-07 01:02:41 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2018-09-07 01:02:41 +0300 |
commit | abfc18794cbd9119c110f32e39ea48a00e5b9214 (patch) | |
tree | 5a1cbe3cb321eecda56e2f4b4498019a96eb4b0a /src/gui/widgets/tabs/mapdebugtab.cpp | |
parent | fea2f27179d17bbba96873ea0eeae99df20a457c (diff) | |
download | mv-abfc18794cbd9119c110f32e39ea48a00e5b9214.tar.gz mv-abfc18794cbd9119c110f32e39ea48a00e5b9214.tar.bz2 mv-abfc18794cbd9119c110f32e39ea48a00e5b9214.tar.xz mv-abfc18794cbd9119c110f32e39ea48a00e5b9214.zip |
Add stats tab into debug window. Move LPS counter into stats tab.
Diffstat (limited to 'src/gui/widgets/tabs/mapdebugtab.cpp')
-rw-r--r-- | src/gui/widgets/tabs/mapdebugtab.cpp | 25 |
1 files changed, 10 insertions, 15 deletions
diff --git a/src/gui/widgets/tabs/mapdebugtab.cpp b/src/gui/widgets/tabs/mapdebugtab.cpp index 14dd4184e..6b133e4bb 100644 --- a/src/gui/widgets/tabs/mapdebugtab.cpp +++ b/src/gui/widgets/tabs/mapdebugtab.cpp @@ -86,8 +86,6 @@ MapDebugTab::MapDebugTab(const Widget2 *const widget) : #endif // DEBUG_BIND_TEXTURE // TRANSLATORS: debug window label, frames per second mFPSLabel(new Label(this, strprintf(_("%d FPS"), 0))), - // TRANSLATORS: debug window label, logic per second - mLPSLabel(new Label(this, strprintf(_("%d LPS"), 0))), mFPSText() { LayoutHelper h(this); @@ -135,20 +133,19 @@ MapDebugTab::MapDebugTab(const Widget2 *const widget) : #endif // USE_OPENGL place(0, 0, mFPSLabel, 2, 1); - place(0, 1, mLPSLabel, 2, 1); - place(0, 2, mMusicFileLabel, 2, 1); - place(0, 3, mMapLabel, 2, 1); - place(0, 4, mMapNameLabel, 2, 1); - place(0, 5, mMinimapLabel, 2, 1); - place(0, 6, mXYLabel, 2, 1); - place(0, 7, mTileMouseLabel, 2, 1); - place(0, 8, mParticleCountLabel, 2, 1); - place(0, 9, mMapActorCountLabel, 2, 1); + place(0, 1, mMusicFileLabel, 2, 1); + place(0, 2, mMapLabel, 2, 1); + place(0, 3, mMapNameLabel, 2, 1); + place(0, 4, mMinimapLabel, 2, 1); + place(0, 5, mXYLabel, 2, 1); + place(0, 6, mTileMouseLabel, 2, 1); + place(0, 7, mParticleCountLabel, 2, 1); + place(0, 8, mMapActorCountLabel, 2, 1); #ifdef USE_OPENGL - place(0, 10, mMapAtlasCountLabel, 2, 1); + place(0, 9, mMapAtlasCountLabel, 2, 1); #if defined (DEBUG_OPENGL_LEAKS) || defined(DEBUG_DRAW_CALLS) \ || defined(DEBUG_BIND_TEXTURE) - int n = 11; + int n = 10; #endif // defined (DEBUG_OPENGL_LEAKS) || defined(DEBUG_DRAW_CALLS) // || defined(DEBUG_BIND_TEXTURE) #ifdef DEBUG_OPENGL_LEAKS @@ -283,7 +280,5 @@ void MapDebugTab::logic() #endif // USE_OPENGL mFPSLabel->setCaption(strprintf(mFPSText.c_str(), fps)); - // TRANSLATORS: debug window label, logic per second - mLPSLabel->setCaption(strprintf(_("%d LPS"), lps)); BLOCK_END("MapDebugTab::logic") } |