1
0
Fork 0
forked from eden-emu/eden

Add performance statistics to status bar

This commit is contained in:
Yuri Kunde Schlesner 2017-02-19 14:34:47 -08:00
parent 1772c9f5a0
commit 3a9447bc16
11 changed files with 159 additions and 3 deletions

View file

@ -4,6 +4,7 @@
#include "common/bit_field.h"
#include "common/microprofile.h"
#include "core/core.h"
#include "core/hle/kernel/event.h"
#include "core/hle/kernel/shared_memory.h"
#include "core/hle/result.h"
@ -280,6 +281,8 @@ ResultCode SetBufferSwap(u32 screen_id, const FrameBufferInfo& info) {
if (screen_id == 0) {
MicroProfileFlip();
auto perf_stats = Core::System::GetInstance().perf_stats.Lock();
perf_stats->EndGameFrame();
}
return RESULT_SUCCESS;