Hi Aron,
I would like to do the following: Generate a list of draw commands and save them as part of an object. Each frame I would like to render several of those objects each with different transforms, along with some additional draw commands. If the object gets changed I would like to update the saved draw commands.
Is this possible? I can’t see any obvious way of doing this.
Kind regards,
Rob.
Hi
It is possible to cache draw commands, however, it is not possible to re-render those with different transforms, I’m afraid.
See GetRedrawScope - ALINE (note, the documentation text is slightly outdated on that page, but the example code should work).
Hi Aron,
RedrawScope.Draw is marked as internal. But, I think that’s probably what I’ll try and do. Trying to avoid the overhead of rebuilding each frame.
Kind regards,
Rob.
Hi again Aron,
That works well and does exactly what I want. I see that you don’t need to call Draw each frame, so I don’t need to change the source.
Thanks for your help,
Rob.
1 Like