Background Simulation: is it possible in Godot?

Godot Version

4.3

Question

I’m designing a game that runs a background simulation. That is, the game plays itself and even when the player isn’t in a location, there are things happening there. The way I’m planning is the following:

  • HashMap data structure that stores a 3D grid in memory. Each cell in a grid holds a dictionary that can store any kind of data.

  • Entities in the world, like animals, characters and the player, are all present in this data structure. Let’s say, at point (1, 1, 1), it is know that there’s a character, the ground is made of grass, etc. And (2,1,1), there’s a tree, and the ground is made of dirt, etc.

  • I’m planning a 3D Top Down isometric-like (but with free camera) style, so only a controlled space of the world is rendered for the player given its character location

:question:
Is it possible to create an area around the player, let’s say, 8x8x8, and fetch data from this area from the data structure and “feed” the godot engine so that it renders in the screen only the 8x8x8 area, like a cube around the player?

Like, in (1, 1,1), the ground is made of grass, so render a voxel thing with grass. And there’s a character in it, so fetch data from the character and render it. And in (1,2,1) there’s a torch, them get data about the torch and render it, with light and so on and so forth

Many thanks in advance!

Yes this should be possible. If you are asking how, you should probably tell us what data exactly you want to store and retrieve