Pipeline to draw models !

This commit is contained in:
2026-10-14 00:10:58 -03:00
parent 6ad476ac18
commit d7f1b91c0a
9 changed files with 593 additions and 201 deletions
+3 -1
View File
@@ -102,4 +102,6 @@ Only visuals in chunks in view get `on_frame`, so keep anything that has to happ
## Cost
Instances are worked out on the CPU each frame for now, a little for each one in view. A few hundred are fine.
Every instance of a model is drawn in one draw call, and the GPU turns rotating instances by the time, so a block that
keeps turning costs nothing per frame. Setting an instance's rotation or transform sends just that instance to the GPU
again. What costs CPU time is `on_frame`, so use a rotating instance wherever the movement is steady.