OpenCOlorIO: Add explicit linearSRGB -> sRGB lookup table
Previously converting from linear space to SRGB was doing rather slow inverted 1D lookup. Adding explicit inverse LUT gives 20% speedup of OpenGL render. Next question is: why do we even bother with sRGB conversion here, OpenGL is already in the proper space so in theory we can avoid quite some color space conversions. In any case, having this case optimized in nice anyway.
This commit is contained in:
@@ -247,6 +247,7 @@ colorspaces:
|
||||
allocation: uniform
|
||||
allocationvars: [-0.125, 4.875]
|
||||
to_reference: !<FileTransform> {src: srgb.spi1d, interpolation: linear}
|
||||
from_reference: !<FileTransform> {src: srgb_inv.spi1d, interpolation: linear}
|
||||
|
||||
- !<ColorSpace>
|
||||
name: VD16
|
||||
|
65567
release/datafiles/colormanagement/luts/srgb_inv.spi1d
Normal file
65567
release/datafiles/colormanagement/luts/srgb_inv.spi1d
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user