I’m beginner in threejs and I try to generate a random ground, for that I use this code => https://codepen.io/Ygles/pen/mZVRmg
Sorry code is not proper but after many many try it becomes very dirty.
Each second I generate a new vertices line and create new faces(setInterval function is line 101) . The FPS is very low after 2 or 3 lines of vertices, I don’t have many vertices at the beginning and I don’t understand why the FPS is very low. I think I do something wrong in the render function.
In JS part line 185 you can find the render function.
Can you help me please ?