O'Reilly logo

DirectX 11.1 Game Programming by Pooya Eimandar

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Asynchronous loading

In a few years, most computers and game consoles will support multiple CPU cores. Programming on multiple cores makes a lot of sense, as each part of the game can work separately. This section will demonstrate how to move from a single-thread load system approach to a multitask load system. It will cover how to load resources efficiently with tasks and at the same time provide you with a basic guideline on how to consume asynchronous methods using ppltasks.h, which is defined in the concurrency namespace.

Introduction to tasks

A task is a unit of work that can execute asynchronously. When a task is created at runtime, it can execute on any available threads, and it is also able to use all the CPU cores of the machine. A set ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required