How to have my Progress Bar show how much of game is loaded?

Hey! I want to have my splash screen start up with a progress bar that shows how much of the game has been loaded. Once it reaches 100%, the splash screen is replaced with my game!

How do I do this?
How do I monitor how much of the game is loaded?

Well the obvious question is - how do you know what you’re loading?

A common technique is to have a tiny bootstrap loader/renderer which initialises and starts drawing to screen as quickly as possible. Then that kicks off a second thread that actually loads the rest of your game while the bootstrap loader monitors it to see how far it’s gone. When it’s done, the bootstrap loader hands off to your now-loaded game.