Loading resources or map data asynchronously in games is not an easy task. C++11 makes all of this a lot easier. I am going to demonstrate how to create a thread using async. And then how to sync back to the main loop using lambda functions.
Consider the following code, that is blocking:
Consider the following code, that is blocking:
void onNewGa…
Advertisement
Popular Blogs
Advertisement