pex-renderer
pex-renderer copied to clipboard
Optimize getGeometryPipeline and getMaterialProgram
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.