Skip to content

Commit

Permalink
optimize
Browse files Browse the repository at this point in the history
  • Loading branch information
yiwenxue committed Sep 7, 2023
1 parent 74ac6c5 commit 97ed28c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions native/cocos/3d/assets/Mesh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,9 @@ void MeshUtils::dequantizeMesh(Mesh::IStruct &structInfo, Uint8Array &data) {
std::vector<uint32_t> strides;
std::vector<bool> dequantizes;
std::vector<DataReaderCallback> readers;
strides.reserve(attrs.size());
dequantizes.reserve(attrs.size());
readers.reserve(attrs.size());
for (uint32_t i = 0; i < attrs.size(); ++i) {
auto &attr = attrs[i];
auto inputView = DataView(data.buffer(), view.offset + getOffset(oldAttrs, i));
Expand Down

0 comments on commit 97ed28c

Please sign in to comment.