When Three.js Version bigger than 164, the shadowMap cant be cache,This leads to a decrease in rendering performance

When Three.js Version bigger than 164, the shadowMap cant be cache,This leads to a decrease in rendering performance,

when Three.js Version less than 164, when I render shadowMap, I will set “renderer.shadowMap.enabled = false” after first render, the next time the shadowMap persist,This can significantly improve the performance of rendering shadows
But in 165,166 I cant not do it…

Did you try setting .autoUpdate on light shadow to false? Should be a bit less hacky, plus you can then control which light has a dynamic shadow and which uses a cached one.