zeux / niagara

A Vulkan renderer written from scratch on stream
MIT License
1.26k stars 72 forks source link

Update meshoptimizer to latest and switch to new meshlet builder #28

Closed zeux closed 2 years ago

zeux commented 2 years ago

This was a long time coming... the meshlet builder changed the interface substantially, but it's easy enough to keep using the same flow for now as it maximizes the flexibility of changing GPU data layout.

Note, the timings below are from radv and they are clearly too high, plus I'm not confident the triangle counts are correct in this path, so these numbers may be off, but still:

old version: 17.0ms, 80.6M triangles new version, linear scan algorithm: 16.6ms, 79.1M triangles new version, default algorithm, cone weight 0.5: 16.2ms, 75.1M triangles

Cone weight may need to be tuned after I figure out what to do about mesh shading performance on AMD hardware...