Simply put, is there a way to run a piece of code only after at least one new frame has been rendered?
To explain: For a project that I’m working on, I want to implement a very simple loading screen–no threading, just a static screen that’s shown until loading is finished.
However, past experience tells me that I can’t just attach a quad and then proceed with loading: the quad may well not be rendered until after the loading is done. And, if I recall correctly, even running the load after a very short “doMethodLater” may not be reliable.
So, what I want then is to put up my quad, wait until that has been rendered at least once, and only then proceed with the actual loading.
But I’m not sure of how to handle the “wait until rendered” part. Is there a way to detect that, or to get a callback on it happening…?