galacean / engine

A typescript interactive engine, support 2D, 3D, animation, physics, built on WebGL and glTF.
https://galacean.antgroup.com/engine
MIT License
4.2k stars 299 forks source link

H5页面上部署多个游戏,当不同游戏相互切换时伴随engine的重复创建,多次切换会出现白屏问题 #2075

Open zstonecode2019 opened 5 months ago

zstonecode2019 commented 5 months ago

Describe the bug H5页面上部署多个游戏,当不同游戏相互切换时伴随engine的重复创建,多次切换会出现白屏问题

Desktop (please complete the following information):

Smartphone (please complete the following information):

Additional context h5在iphone13 pro上基本切三四次就会出现白屏,在Chrome浏览器上出现白屏几率小;尝试使用过单例和把engine置为全局,重复进入时destory并赋值null;但在手机端依然存在切三到四次就白屏的情况;

GuoLei1990 commented 5 months ago

可以进一步补充下引擎版本之类的信息!如果可以,最好可以提供一个简单复现的 Demo,方便排查,我们也会尽快解决!