diff options
| author | David Korth <gerbilsoft@gerbilsoft.com> | 2019-09-14 16:48:48 -0400 |
|---|---|---|
| committer | David Korth <gerbilsoft@gerbilsoft.com> | 2019-12-29 23:45:02 -0500 |
| commit | f5fe69284200553e1890e55d82c53a60e9ed2ae3 (patch) | |
| tree | 6a437abccae99dc4a0880f946eed574d2a43d7f8 /Source/Core/VideoBackends/D3D12/StreamBuffer.cpp | |
| parent | c2dd2e8a2e202b3cb63023306569d4f26e293adb (diff) | |
Use pre-increment for iterators instead of post-increment.
Pre-increment is more efficient, since it doesn't have to return the
old iterator.
Diffstat (limited to 'Source/Core/VideoBackends/D3D12/StreamBuffer.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D12/StreamBuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/D3D12/StreamBuffer.cpp b/Source/Core/VideoBackends/D3D12/StreamBuffer.cpp index a3702a7256..d8f0699f77 100644 --- a/Source/Core/VideoBackends/D3D12/StreamBuffer.cpp +++ b/Source/Core/VideoBackends/D3D12/StreamBuffer.cpp @@ -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 |
