wait is not really a concept outside of 3DGS (for good reasons). It's super expensive in terms of runtime costs, and it doesn't necessarily lead to cleaner code. The one big advantage that it brings to the table for 3DGS is that you get to keep your local storage around. However, in OOP, that storage becomes part of your object and you don't need wait for that anymore.

Long story short: Do yourself a favour and forget about wait and don't try to create a similar looking bandaid. Instead, try to figure out why you want to use wait and how to solve that issue with what you have at hand.


Shitlord by trade and passion. Graphics programmer at Laminar Research.
I write blog posts at feresignum.com