Scale the frame profiler graph dynamically

This commit is contained in:
Henrik Rydgard committed 2015-05-24 23:45:37 +02:00
1 parent 26624709f7
commit 2e26a4798e
3 files changed
+32 -6

No files matched your search

+5 -2
View File
@@ -21,6 +21,7 @@
#include "base/display.h"
#include "base/logging.h"
#include "base/timeutil.h"
#include "profiler/profiler.h"
#include "gfx_es2/glsl_program.h"
#include "gfx_es2/gl_state.h"
@@ -908,9 +909,11 @@ void EmuScreen::render() {
DrawFPS(draw2d, screenManager()->getUIContext()->GetBounds());
}
#ifdef USE_PROFILER
if (g_Config.bShowFrameProfiler) {
// DrawProfile(*screenManager()->getUIContext());
DrawProfile(*screenManager()->getUIContext());
}
#endif
screenManager()->getUIContext()->End();
}
@@ -955,4 +958,4 @@ void EmuScreen::releaseButtons() {
input.timestamp = time_now_d();
input.id = 0;
touch(input);
}
}