Function meshopt::optimize::optimize_vertex_cache_fifo[][src]

pub fn optimize_vertex_cache_fifo(
    indices: &[u32],
    vertex_count: usize,
    cache_size: u32
) -> Vec<u32>

Vertex transform cache optimizer for FIFO caches.

Reorders indices to reduce the number of GPU vertex shader invocations.

Generally takes ~3x less time to optimize meshes but produces inferior results compared to optimize_vertex_cache.

If index buffer contains multiple ranges for multiple draw calls, this function needs to be called on each range individually.