Pipeline to draw models !
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user