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:
David Korth
2019-09-14 16:48:48 -04:00
parent c2dd2e8a2e
commit f5fe692842
3 changed files with 4 additions and 4 deletions

View File

@ -254,7 +254,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