AcademySoftwareFoundation / OpenShadingLanguage

Advanced shading language for production GI renderers
BSD 3-Clause "New" or "Revised" License
2.09k stars 357 forks source link

fix: Have ReParameter only copy data when it changes #1698

Closed lgritz closed 1 year ago

lgritz commented 1 year ago

For GPU in particular, this prevents needless transfers to the device when no values actually change.

Also, keep track of some statistics about how much ReParameter is being used. (Which also helps to verify that this change works as intended.)