mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 17:23:40 +01:00
Scale the frame profiler graph dynamically
This commit is contained in:
1 parent
26624709f7
commit
2e26a4798e
3 files changed
+32
-6
No files matched your search
+5
-2
@@ -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);
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user