i'm testing some things with c2 like a minecraft clone and when i generate too many blocks the game obviously slow down, can i put some kind of block render distance or something like that to end with the lag?
Develop games in your browser. Powerful, performant & highly capable.
If most objects are off-screen and the game still slows down, then the problem is not with rendering them. You need to keep the object count reasonable, disable behaviors when they are not used, optimize collision checks etc.
If the game is 2D, consider replacing blocks with a tilemap - it should be massively faster.
Yeah u can substitute sprites with a data structure and spawn things once you determine they're almost on-screen so anything off screen doesn't get ticked by the runtime