engine
engine copied to clipboard
Mesh particle effect shows artifacts on first play on Samsung Exynos devices
Project: https://playcanvas.com/project/975817/overview/samsung-mesh-particle-issue Published build: https://playcanv.as/e/p/2e8igsHo/
- On a Samsung Exynos device press on animationUpdate button in the top right (particle effect is played on the engine animationUpdate event. This is to simulate when the collision event is fire when rigidbodies collide)
- See the particle effect give a frame of artifacts but only on the first time it is played. (repro rate is about 80%)
- Issue occurs on both WebGL 1 and 2

However, I noticed that if it is played on the frameend event, it is fine (at least from a remote device)
// initialize code called once per entity
OnFrameEnd.prototype.initialize = function() {
this.entity.button.on('click', () => {
this.app.once('frameend', () => {
this.targetEntity.particlesystem.reset();
this.targetEntity.particlesystem.play();
});
});
};
For the moment as this is likely a driver bug (see #3460), please use this as the workaround.