yuzu-emu
/
yuzu-android
Archived
1
0
Fork 0

Merge pull request #1001 from lioncash/reserve

gl_shader_decompiler: Reserve element memory beforehand in BuildRegisterList()
This commit is contained in:
bunnei 2018-08-09 19:27:35 -04:00 committed by GitHub
commit 05c33d89a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -507,6 +507,8 @@ private:
/// Build the GLSL register list.
void BuildRegisterList() {
regs.reserve(Register::NumRegisters);
for (size_t index = 0; index < Register::NumRegisters; ++index) {
regs.emplace_back(index, suffix);
}