mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-18 08:19:59 +00:00
Merge pull request #9645 from leoetlino/fifoplayer-optimization
FifoPlayer: Copy data with memcpy instead of one byte at a time
This commit is contained in:
commit
92308f5e34
1 changed files with 3 additions and 2 deletions
|
@ -381,8 +381,9 @@ void FifoPlayer::WriteFifo(const u8* data, u32 start, u32 end)
|
||||||
|
|
||||||
u32 burstEnd = std::min(written + 255, lastBurstEnd);
|
u32 burstEnd = std::min(written + 255, lastBurstEnd);
|
||||||
|
|
||||||
while (written < burstEnd)
|
std::copy(data + written, data + burstEnd, PowerPC::ppcState.gather_pipe_ptr);
|
||||||
GPFifo::FastWrite8(data[written++]);
|
PowerPC::ppcState.gather_pipe_ptr += burstEnd - written;
|
||||||
|
written = burstEnd;
|
||||||
|
|
||||||
GPFifo::Write8(data[written++]);
|
GPFifo::Write8(data[written++]);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue