Multithreading
Multithreading, the simultaneous iteration and modification of entities for extra speed.
Setup
// Create Scheduler and assign it to world
var jobScheduler = new(
new JobScheduler.Config
{
ThreadPrefixName = "Arch.Samples",
ThreadCount = 0,
MaxExpectedConcurrentJobs = 64,
StrictAllocationMode = false,
}
);
world.SharedJobScheduler = jobScheduler;
// To dispose the JobScheduler at the end of the lifecycle.
jobScheduler.Dispose();Example
Lowlevel
Last updated