It would be nice to have a single loop, or two loops where the content that is the same in both loops are isolated to a function.
That would make the code cleaner and smaller.
However, we want to avoid having a "is this the first run or one of the other ones"-check in the loop, since that check would only differ upon start. So I guess some init stuff, then create the overlay, and then move into the optimized update loop.
It would be nice to have a single loop, or two loops where the content that is the same in both loops are isolated to a function.
That would make the code cleaner and smaller.
However, we want to avoid having a "is this the first run or one of the other ones"-check in the loop, since that check would only differ upon start. So I guess some init stuff, then create the overlay, and then move into the optimized update loop.