Skip to content

Optimize an Index Buffer created at run-time #722

Answered by zeux
GiuseppeCassisi96 asked this question in Q&A
Discussion options

You must be logged in to vote

While the direct answer to your question is yes - all meshoptimizer algorithms can in principle be used at runtime, many of them are well optimized for procedural geometry use cases - in this specific case, I don't think it makes sense and it would be detrimental for performance.

The cases where the algorithms are suited for runtime use are generally such that the geometry is generated once, optimized once and then rendered many times - that way, the extra cost of optimization is paid for by many subsequent render attempts. Additionally, if the generation itself is somewhat expensive, the extra cost of running optimization may be reasonable in context.

In this case, I would expect that ev…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@GiuseppeCassisi96
Comment options

@zeux
Comment options

@GiuseppeCassisi96
Comment options

Answer selected by zeux
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants