mirror of
https://github.com/KytyPS5/KytyPS5.git
synced 2026-10-25 12:26:51 +01:00
feat: add an in-game performance panel (#1090)
Add in-game performance panel Co-authored-by: nmzik <Nmzik@mail.ru>
This commit is contained in:
committed by
GitHub
parent
415387f00d
commit
6aa3846fb2
@@ -1,6 +1,7 @@
|
||||
#include "libs/audio.h"
|
||||
|
||||
#include "common/assert.h"
|
||||
#include "common/debugCounters.h"
|
||||
#include "common/emulatorConfig.h"
|
||||
#include "common/logging/log.h"
|
||||
#include "common/threads.h"
|
||||
@@ -403,6 +404,9 @@ bool Audio::QueueSdlAudio(PortOut* port, const void* data, bool blocking, float
|
||||
queued = SDL_GetAudioStreamQueued(port->stream);
|
||||
}
|
||||
if (queued < static_cast<int>(prepared_size)) {
|
||||
if (port->queue_primed) {
|
||||
Common::DebugCounters::Add(Common::DebugCounters::Counter::AudioUnderruns);
|
||||
}
|
||||
port->queue_primed = false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user