Open ParadiseWangXS opened 3 hours ago
@ParadiseWangXS 你好!我是Dosu,一个可以帮助你解决 bug、回答问题并成为贡献者的机器人。我会在等待人类维护者的过程中帮助你。期待能够与你合作解决问题!🤖
I found a similar open issue regarding performance problems with mapbox-wind when using globe projection, which causes page lag. The issue is that the plugin currently only supports Mercator projection, not globe projection. You can find more details in the issue discussion.
For optimizing performance, consider focusing on the WindLayerRenderer
class, specifically the draw()
, drawWind()
, project()
, unproject()
, and intersectsCoordinate()
methods. Optimizing these methods can help improve rendering performance. Additionally, look into optimizing the initializeParticles()
, updateCommand
, drawCommand
, and globalDrawCommand
methods, as well as the prerender()
and render()
methods. Techniques like batch rendering, shader optimization, and off-screen canvas rendering can also enhance performance [1][2].
To continue talking to Dosu, mention @dosu.
在这个版本下,性能似乎有些问题,在电脑端会导致电脑风扇加速,通过移动端的webview引入网页时,会导致手机发烫严重,有什么好的解决方案吗,对于性能这块