Class Tree.RefitAndRefineMultithreadedContext
- Namespace
- BepuPhysics.Trees
- Assembly
- BepuPhysics.dll
Caches input and output for the multithreaded execution of a tree's refit and refinement operations.
public class Tree.RefitAndRefineMultithreadedContext
- Inheritance
-
Tree.RefitAndRefineMultithreadedContext
- Inherited Members
Constructors
RefitAndRefineMultithreadedContext()
public RefitAndRefineMultithreadedContext()
Fields
MaximumSubtrees
public int MaximumSubtrees
Field Value
RefinementTargets
public QuickList<int> RefinementTargets
Field Value
- QuickList<int>
RefitNodes
public QuickList<int> RefitNodes
Field Value
- QuickList<int>
Methods
CleanUpForRefitAndRefine(BufferPool)
public void CleanUpForRefitAndRefine(BufferPool pool)
Parameters
pool
BufferPool
CreateRefinementJobs(BufferPool, int, float)
public void CreateRefinementJobs(BufferPool pool, int frameIndex, float refineAggressivenessScale = 1)
Parameters
CreateRefitAndMarkJobs(ref Tree, BufferPool, IThreadDispatcher)
public void CreateRefitAndMarkJobs(ref Tree tree, BufferPool pool, IThreadDispatcher threadDispatcher)
Parameters
tree
Treepool
BufferPoolthreadDispatcher
IThreadDispatcher
ExecuteRefineJob(ref QuickList<int>, ref QuickList<int>, ref BinnedResources, BufferPool, int)
public void ExecuteRefineJob(ref QuickList<int> subtreeReferences, ref QuickList<int> treeletInternalNodes, ref BinnedResources resources, BufferPool threadPool, int refineIndex)
Parameters
subtreeReferences
QuickList<int>treeletInternalNodes
QuickList<int>resources
BinnedResourcesthreadPool
BufferPoolrefineIndex
int
ExecuteRefitAndMarkJob(BufferPool, int, int)
public void ExecuteRefitAndMarkJob(BufferPool threadPool, int workerIndex, int refitIndex)
Parameters
RefineForWorker(int)
public void RefineForWorker(int workerIndex)
Parameters
workerIndex
int
RefitAndMarkForWorker(int)
public void RefitAndMarkForWorker(int workerIndex)
Parameters
workerIndex
int
RefitAndRefine(ref Tree, BufferPool, IThreadDispatcher, int, float)
public void RefitAndRefine(ref Tree tree, BufferPool pool, IThreadDispatcher threadDispatcher, int frameIndex, float refineAggressivenessScale = 1)