Skip to content

paraself/ParallelUnity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Parallel.For for Unity

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

No packages published

Languages

  • C# 81.7%
  • GLSL 18.3%