My voxel game generates thousands of blocks which causes lag, therefore I want to know what are the effective ways so I can implement it into my game. All kinds of suggestion are appreciated.
is it on client? ---------------
1 Like
It is not on client. 30chahahahhahahahhaha
That is your issue, this should be done on client then replicated to all players
Alright, let me try that. 30 chahhahahahhahahah
The lag doesn’t changed much. 30 chahhahahahhaha
only render blocks that the player can see
1 Like
That would require a loop to check each individual block which may cause even more lag.
You could instead loop through and check every chunk. And then hide the entire chunk if it’s out of view.
1 Like
That’s a good idea, I will try that out.