mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 13:48:56 +00:00
Use pre-increment for iterators instead of post-increment.
Pre-increment is more efficient, since it doesn't have to return the old iterator.
This commit is contained in:
parent
c2dd2e8a2e
commit
f5fe692842
3 changed files with 4 additions and 4 deletions
|
@ -178,7 +178,7 @@ bool StreamBuffer::WaitForClearSpace(u32 num_bytes)
|
|||
u32 new_gpu_position = 0;
|
||||
|
||||
auto iter = m_tracked_fences.begin();
|
||||
for (; iter != m_tracked_fences.end(); iter++)
|
||||
for (; iter != m_tracked_fences.end(); ++iter)
|
||||
{
|
||||
// Would this fence bring us in line with the GPU?
|
||||
// This is the "last resort" case, where a command buffer execution has been forced
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue