mirror of
https://github.com/izzy2lost/libultraship.git
synced 2026-10-26 11:44:27 -07:00
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.