Table of Contents

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

int

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

pool BufferPool
frameIndex int
refineAggressivenessScale float

CreateRefitAndMarkJobs(ref Tree, BufferPool, IThreadDispatcher)

public void CreateRefitAndMarkJobs(ref Tree tree, BufferPool pool, IThreadDispatcher threadDispatcher)

Parameters

tree Tree
pool BufferPool
threadDispatcher 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 BinnedResources
threadPool BufferPool
refineIndex int

ExecuteRefitAndMarkJob(BufferPool, int, int)

public void ExecuteRefitAndMarkJob(BufferPool threadPool, int workerIndex, int refitIndex)

Parameters

threadPool BufferPool
workerIndex int
refitIndex int

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)

Parameters

tree Tree
pool BufferPool
threadDispatcher IThreadDispatcher
frameIndex int
refineAggressivenessScale float