Working in inmediate mode, in a functional way instead of a descriptive way.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By tamat

Hi:

I’ve been coding my own engines for several years and I love many of Godot features but I was wondering if it has a good API to bypass the scene graph and work directly drawing stuff to the screen from code.

Like if I want to render 100.000 entities, I do not want to rely on Nodes, but handle myself the culling and send to the GPU the - render this mesh with this material -. I understand that this way I will miss many other features but I do not care.

Also for UIs, I prefeer to work as Dear ImGUI and create the interface from code instead of using a visual editor.

Is Godot ready for this kind of development or you are totally bound to the scene graph?

Thanks

:bust_in_silhouette: Reply From: Calinou

See Optimization using Servers in the documentation.

Also for UIs, I prefeer to work as Dear ImGUI and create the interface from code instead of using a visual editor.

Godot doesn’t use immediate-mode UI, but nothing prevents you from creating Control nodes from code and adding them to the scene tree with add_child() instead of using the editor.