Skip to content

nobnak/ParallelUnity

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallel.For for Unity

Unity Package

  • For Loop Execution in Parallel

Usage

Declare Parallel Task

System.Action<int> task = (i) => {
	var p = particles[i];
	var speed = p.velocity.magnitude;
	p.time += speed * dt;
	p.position += c.velocity * dt;
	particles[i] = p;
};

Call Parallel.For()

Parallel.For(0, particles.Length, task);

References

  1. ParallelForEach

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages