mirror of
https://github.com/yuzu-emu/FasTC
synced 2024-11-23 16:03:43 +00:00
Small optimization: reserve vector data before we populate blocks vector.
This commit is contained in:
parent
33a1dab0a9
commit
2c8254d6c3
1 changed files with 2 additions and 0 deletions
|
@ -296,7 +296,9 @@ namespace PVRTCC {
|
|||
// Pack everything into a PVRTC blocks.
|
||||
const uint32 blocksW = dcj.width / 4;
|
||||
const uint32 blocksH = dcj.height / 4;
|
||||
|
||||
std::vector<uint64> blocks;
|
||||
blocks.reserve(blocksW * blocksH);
|
||||
for(uint32 j = 0; j < blocksH; j++) {
|
||||
for(uint32 i = 0; i < blocksW; i++) {
|
||||
Block b;
|
||||
|
|
Loading…
Reference in a new issue