mirror of
https://github.com/yuzu-emu/FasTC.git
synced 2025-01-23 23:01:10 +00:00
Small optimization: reserve vector data before we populate blocks vector.
This commit is contained in:
parent
33a1dab0a9
commit
2c8254d6c3
|
@ -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