Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #9645 from leoetlino/fifoplayer-optimization
FifoPlayer: Copy data with memcpy instead of one byte at a time
  • Loading branch information
JosJuice committed Apr 18, 2021
2 parents e7f68cf + cc32fa9 commit 92308f5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Source/Core/Core/FifoPlayer/FifoPlayer.cpp
Expand Up @@ -381,8 +381,9 @@ void FifoPlayer::WriteFifo(const u8* data, u32 start, u32 end)

u32 burstEnd = std::min(written + 255, lastBurstEnd);

while (written < burstEnd)
GPFifo::FastWrite8(data[written++]);
std::copy(data + written, data + burstEnd, PowerPC::ppcState.gather_pipe_ptr);
PowerPC::ppcState.gather_pipe_ptr += burstEnd - written;
written = burstEnd;

GPFifo::Write8(data[written++]);

Expand Down

0 comments on commit 92308f5

Please sign in to comment.