diff --git a/plugins/GSdx/GSLocalMemory.cpp b/plugins/GSdx/GSLocalMemory.cpp index 68d5bb98c8..85ff645259 100644 --- a/plugins/GSdx/GSLocalMemory.cpp +++ b/plugins/GSdx/GSLocalMemory.cpp @@ -699,6 +699,9 @@ vector* GSLocalMemory::GetPage2TileMap(const GIFRegTEX0& TEX0) } } + // Allocate vector with initial size + p2t[page].reserve(m.size()); + // sort by x and flip the mask (it will be used to erase a lot of bits in a loop, [x] &= ~y) for(hash_map::iterator j = m.begin(); j != m.end(); ++j)