Open vorg opened 8 months ago
It was added in pex-context@3 alpha to avoid self = this
variable.
Easiest way ATM to recreate issue it to create lineMaterial
const cubeEntity = createEntity({
transform: components.transform(),
geometry: components.geometry(cube()),
material: components.material({ type: "line" }),
});
world.add(cubeEntity);
That will crash lineRendererSystem at buffer: entity._geometry.attributes.aVertexColor.buffer,
as vertex colors are missing
We should try/catch renderEngine.update/render in ctx.frame and return false on error to stop the loop. Restarting the raf will need better devx than a reload in Nodes.
Happens when pipeline crash. Looks like RAF stacks to infinity on error
Can this be caused by
requestAnimationFrame(frame.bind(this));
in pex-renderer?