Files
Paul Schwabauer 18c5343aff perf: avoid memory copies in resource loading (#1027)
The resource loading pipeline was making up to three copies of asset
data between zip decompression and final use:

1. ReadResourceInitDataLegacy copied the entire file body into a new
vector just to strip the OTR header, and separately copied the
header into another vector for parsing.

2. TextureFactory allocated a new uint8_t[] buffer and memcpy'd
image pixel data out of the already-decompressed file buffer.

This improves performance for large resource packs.
2026-04-04 22:13:35 -04:00
..