Hello everyone!
I’m new to Thrive codebase, and I’m having hard time understanding how the World
is rendered.
So far, I have figured out the followings:
(Correction is always welcome if I’m wrong here.)
- the
CreatureStageBase
(parent ofMicrobeStage
) object hasWorldSimulation
(parent ofMicrobeWorldSimulation
) object. WorldSimulation
object hasWorld
data implemented byDefaultEcs
library.- When a /Stage/ is created and attached to the Godot node tree,
World
is instantiated on_Ready()
callback. - When
_Process()
is called by the Godot engine to update the scene, the /Stage/ passes down the update to theWorldSimulation
and updates theWorld
data throughOnProcessFixedWithThreads()
orOnProcessFixedWithoutThreads()
.
The question is “where is the Godot scene update?”. All the code I see here is working on the data itself, and not handling the rendering part.
This might have been my silly oversight though. Thanks in advance.