RtTriangleTimestampStream Struct Reference
List of all members.
|
Public Attributes |
| RtDWORD | dwTrianglesPerBlock |
| | number of triangles that were modified in last update (modified were triangles 0..count-1).
|
| RtDWORD | dwBaseTimestamp |
| | number of triangles in each timestamp block.
|
| RtDWORD | dwTimestamps [8192] |
| | current top-most timestamp.
|
Detailed Description
RtTriangleTimestampStream structure holds information about mesh timestamps.
Each timestamp block contains max timestamp for set of triangles. This is intended for rendering and real time tools as optimization to perform only updates on changed geometry.
1) To detect long tern changes, you need to keep timestamp of last update and compare blocks timestamps. note, that during topology or selection change all timestamps are increased.
2) if dwNumActiveTriangles != 0xFFFFFFFF, exact indices of changed triangles are 0..dwNumActiveTriangles-1; Therefor where another subset of triangles is modified, mesh timestamps of index buffers are changed due to triangle stream permutation.
Member Data Documentation
number of triangles that were modified in last update (modified were triangles 0..count-1).
number of triangles in each timestamp block.
current top-most timestamp.