Currently, I am in the process of developing a cube world game. This involves working with a 3D array of blocks, where each block is represented by an array of mesh (although at this stage, the mesh array simply consists of a single mesh resembling a cube). While the functionality works as intended, I have noticed a significant drop in frames per second when using a large number of blocks (such as a grid of size 50x1x50, resulting in a drastic decrease to around 3fps).
To optimize performance, I have utilized the clone() function for instances where a block is repeated, but it has not provided the desired improvement. The geometry of the meshes is set to BoxBufferGeometry. Additionally, I have experimented with sharing the same geometry and texture instead of relying on cloning, yet the issue persists.
Given these challenges, I am seeking advice on how to enhance the fps output. What techniques do similar games employ to maintain smooth gameplay performance?