this post was submitted on 21 Nov 2023
8 points (100.0% liked)

Godot

6010 readers
21 users here now

Welcome to the programming.dev Godot community!

This is a place where you can discuss about anything relating to the Godot game engine. Feel free to ask questions, post tutorials, show off your godot game, etc.

Make sure to follow the Godot CoC while chatting

We have a matrix room that can be used for chatting with other members of the community here

Links

Other Communities

Rules

We have a four strike system in this community where you get warned the first time you break a rule, then given a week ban, then given a year ban, then a permanent ban. Certain actions may bypass this and go straight to permanent ban if severe enough and done with malicious intent

Wormhole

!roguelikedev@programming.dev

Credits

founded 2 years ago
MODERATORS
 

Hello Everyone! I apologize if this post isn't as organized as it should be.

Every now and then I try my hand at making a 3D terrain system for my game. It's typically a gdscript that reads coordinates in a json, dict, array, etc and then instances each point as a terrain node/tile (so I can dynamically change each tile). The primary issue I run into is lag with reading this data over and over causing lag and the many instances of nodes themselves potentially causing lag.

I have successfully implemented a render distance before, which I believe fixed the instance count (IRC works good for max 5k objects). The issue that I believe stopped me was the lag from looping over an extremely long dictionary every second (or less). The looping was so when the player moved, it rendered a new group of tiles based on the player location.

It took a long time to ask someone else for help with this because I didn't keep track of my small terrain test projects. I do not have any examples of what I've done before at the moment, so take this as someone asking for help on finding and setting up an easily managable 3D terrain system for Godot 3.5.x.

no comments (yet)
sorted by: hot top controversial new old
there doesn't seem to be anything here