Search
- Search for an entity
- Uses
- Unity find by name
- Find anyone near the player
- Find animation keypoint based on time
- Index
- Auxiliary data structure to aid search
- Grid in sample code
- Sorted list, hash map, ...
- Structure of Array layout
- Separate key array from data array
- Improve cache performance during search
- Randomly access payload on hit
- Filter to separate table
- Render Sorting
- Why sort
- Objects come in random order
- Hard to reorder render calls, messes up rest of code structure
- Want to render all objects of one material before the next
- Want to render objects by viewport depth
- Easy to make list, then sort it
- Sort key <GoW3>
- 2b Fullscreen layer
- 3b Viewport
- 3b Viewport layer
- 2b Translucency
- 24b Depth
- 30b Material ID
- OSG example
- Traverse DAG describing world objects
- Generate render commands in several bins
- Solid
- Transparent
- Sort solid by material
- Sort transparent by depth