I am working on a gcode viewer using BJS 4.0 to display a model of what will be printed on my 3D printer. On a non-vuejs version of the page I am able to render about 400k cubes with no performance problems or lockups. However, when attempting to use the same code on a vuejs version of the webpage it throws out of memory exceptions and when it does work for smaller models I find that the performance is very slow.
I was wondering if anyone had any idea what could be going on. The only idea I have is vue is trying to mandhandle and observe babylon. Performance nosedives or outright fails on the sps.addShape or sps.buildMesh calls. From debug it seems when it is building arrays is where the problems may be happening.