mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-12-05 12:13:50 +01:00
Eat cycles in sceMpegRingbufferAvailableSize().
Some games call this in a loop, so it affects perf. And, this eats quite a few cycles, implying it does a lot more work than I thought it did.
This commit is contained in:
1 parent
83c17994f9
commit
ca78dd4e6d
1 file changed
+1
@@ -873,6 +873,7 @@ int sceMpegRingbufferAvailableSize(u32 ringbufferAddr)
|
||||
DEBUG_LOG(HLE, "%i=sceMpegRingbufferAvailableSize(%08x)", ringbuffer.packetsFree, ringbufferAddr);
|
||||
MpegContext *ctx = getMpegCtx(ringbuffer.mpeg);
|
||||
int result = std::min(ringbuffer.packetsFree, ctx->mediaengine->getRemainSize() / 2048);
|
||||
hleEatCycles(2020);
|
||||
return ringbuffer.packetsFree;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user