Cpu cost of render calls?

How costly (CPU wise) are render calls in a star file ? I want to know if it’s worth it to save cpu cycles by not rendering frames unless an option is selected as as opposed to rendering all possible frame and then only including the frames the user has selected.

I think it’s relatively cheap.

applet.Run() returns whatever render.Root object your .star’s main() function returns. These widget objects are basically structs containing the parameters you specify in your script (example). I don’t think any actual drawing code gets called until getting your render.Root.

So my suspicion would be that the cost of drawing is only incurred for whatever frames you actually choose to return. But maybe tidbyt folks can confirm.