Dean Ellis e54103b1b7 Updated some of the Mac projects to actually work. 12 سال پیش
..
Content 69f92b9dae The great samples reorganizing 13 سال پیش
BackgroundThreadTester.MacOS.csproj e54103b1b7 Updated some of the Mac projects to actually work. 12 سال پیش
Enums.cs 69f92b9dae The great samples reorganizing 13 سال پیش
Game1.cs 69f92b9dae The great samples reorganizing 13 سال پیش
Info.plist 69f92b9dae The great samples reorganizing 13 سال پیش
InputManager.cs 69f92b9dae The great samples reorganizing 13 سال پیش
MainMenu.xib 69f92b9dae The great samples reorganizing 13 سال پیش
Object.cs 69f92b9dae The great samples reorganizing 13 سال پیش
Program.cs 69f92b9dae The great samples reorganizing 13 سال پیش
README.md 69f92b9dae The great samples reorganizing 13 سال پیش
TestTexture.cs 69f92b9dae The great samples reorganizing 13 سال پیش
TextManager.cs 69f92b9dae The great samples reorganizing 13 سال پیش

README.md

BackgroundThreadSample

This sample demonstrates the loading of assets in a background thread.

Sample originally created by CircleOf14 and modified by Kenneth Pouncey to create new textures to be added to the game components dynamically in the background.

Of special interest look at the following methods:

CreateBackgroundThread () - Creates a thread to be executed in the background and starts it. BackgroundWorkerThread () - Worker thread that actually does the work of creating the new asset and adding

Make sure to read the comments in these two methods.