Skip to content

Commit 5394954

Browse files
authored
fix HUGE performance loss due to a copy an std vector in lazysprite
1 parent 9b9ea74 commit 5394954

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

loader/src/ui/nodes/LazySprite.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ void LazySprite::loadFromData(std::vector<uint8_t> data, Format format) {
317317
m_expectedFormat = format;
318318
m_isLoading = true;
319319

320-
this->doInitFromBytes(data, "");
320+
this->doInitFromBytes(std::move(data), "");
321321
}
322322

323323
void LazySprite::doInitFromBytes(std::vector<uint8_t> data, std::string cacheKey) {

0 commit comments

Comments
 (0)