pex-renderer icon indicating copy to clipboard operation
pex-renderer copied to clipboard

Optimize getGeometryPipeline and getMaterialProgram

Open vorg opened this issue 7 years ago • 2 comments

Building shader preprocessor flags from scratch every frame just in case come light changed or material property is wasteful takes a lot of time in getMaterialProgram https://github.com/pex-gl/pex-renderer/blob/master/index.js#L152. It could be potentially improved with some caching.

vorg avatar Aug 06 '18 22:08 vorg