engine
 
载入中...
搜索中...
未找到
Public 属性 | 所有成员列表
AsyncTraceData结构体 参考

Contains all Async Trace Result for one frame. 更多...

#include <WorldCollision.h>

+ 类 AsyncTraceData 继承关系图:

Public 属性

FGraphEventArray AsyncTraceCompletionEvent
 Thread completion event for batch
 
bool bAsyncAllowed
 if Execution is all done, set this to be true 更多...
 
int32 NumQueuedOverlapData
 Datum entries in OverlapData are persistent for efficiency. 更多...
 
int32 NumQueuedTraceData
 Datum entries in TraceData are persistent for efficiency. 更多...
 
TArray< TUniquePtr< TTraceThreadData< FTraceDatum > > > TraceData
 Data Buffer for each trace type - one for Trace/Sweep and one for Overlap 更多...
 

详细描述

Contains all Async Trace Result for one frame.

We use double buffer for trace data pool. FrameNumber % 2 = is going to be the one collecting NEW data Check FWorldAsyncTraceState to see how this is used. For now it is only double buffer, but it can be more.

类成员变量说明

◆ bAsyncAllowed

bool AsyncTraceData::bAsyncAllowed

if Execution is all done, set this to be true

when reinitialize bAsyncAllowed is true, once execution is done, this will set to be false this is to find cases where execution is already done but another request is made again within the same frame.

◆ NumQueuedOverlapData

int32 AsyncTraceData::NumQueuedOverlapData

Datum entries in OverlapData are persistent for efficiency.

This is the number of them that are actually in use (rather than OverlapData.Num()).

◆ NumQueuedTraceData

int32 AsyncTraceData::NumQueuedTraceData

Datum entries in TraceData are persistent for efficiency.

This is the number of them that are actually in use (rather than TraceData.Num()).

◆ TraceData

TArray<TUniquePtr<TTraceThreadData<FTraceDatum> > > AsyncTraceData::TraceData

Data Buffer for each trace type - one for Trace/Sweep and one for Overlap

FTraceThreadData is one atomic data size for thread so once that's filled up, this will be sent to thread if you need more, it will allocate new FTraceThreadData and add to TArray

however when we calculate index of buffer, we calculate continuously, meaning if TraceData(1).Buffer[50] will have 1*ASYNC_TRACE_BUFFER_SIZE + 50 as index in order to give UNIQUE INDEX to every data in this buffer


该结构体的文档由以下文件生成: