TzuChieh / Photon-v2

A program that takes photographs of a virtual world.
https://tzuchieh.github.io/Photon-v2-site/engine_docs/v2.0.0-beta/Photon/html/index.html
MIT License
84 stars 5 forks source link

Update spectral_data.h to use C++17 inline constexpr arrays #65

Closed TzuChieh closed 3 years ago

TzuChieh commented 3 years ago

Doing this should make the arrays' address irrelevant, so the compiler can potentially do more optimizations.

TzuChieh commented 3 years ago

We now have new color space implementations and decide to keep the original design, as it cleanly hides how the spectral data is loaded. This should not be a performance critical part.