EXR: multi-threaded exr image loading

EXR files internally are split into independent "parts", which can
be decoded separately. Tinyexr already supports that via
TINYEXR_USE_THREAD.

Time taken to load 4K video resolution EXR files, on Ryzen 5950X/VS2022:
- FP16 file (27MB): 536ms -> 77ms
- FP32 file (69MB): 793ms -> 118ms
This commit is contained in:
Aras Pranckevicius
2024-10-31 18:29:55 +02:00
committed by Baldur Karlsson
parent b4403b2d8d
commit bb3b571c90
+2
View File
@@ -26,5 +26,7 @@
// compatible functions to be available, which miniz does.
#define TINYEXR_USE_MINIZ 0
#define TINYEXR_USE_THREAD 1
#define TINYEXR_IMPLEMENTATION
#include "tinyexr.h"