Having some issues with my load game system at the moment, whereby I call ‘LoadGame()’ then set a timer directly afterwards. The Timer starts & fires before the Load is completed however (at least, that’s what I think is happening based on my code), but just as a sanity check, is Load Game a blocking call or not? I’m thinking of creating a delegate instead that fires when the load is complete, but won’t bother if that’s not the issue.
It’s not ‘blocking calls’…
If you’re loading big packs of data the .exe may hang stuck until System.I/O is done reading the files from disk and feeding them into memory. But if that doesn’t occur, program flow keeps going even if loading didn’t finish yet.
I just assumed ‘Blocking’ meant that program execution can’t continue until that function has finished what it’s doing, slight terminology error
Not really a terminology error, it is a blocking call. Considering a “blocking call” is a call to a function/method which blocks further program execution until one specific task has been performed.
However, this is definitely intentional.
That’s fine, just means I’ve messed up somewhere else.