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:
Unknown W. Brackets committed 2013-06-22 08:36:31 -07:00
1 parent 83c17994f9
commit ca78dd4e6d
1 file changed
+1
+1
View File
@@ -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;
}