Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instancing used excessively for single models #678

Open
jamesu opened this issue May 30, 2014 · 1 comment
Open

Instancing used excessively for single models #678

jamesu opened this issue May 30, 2014 · 1 comment
Labels

Comments

@jamesu
Copy link
Contributor

@jamesu jamesu commented May 30, 2014

In

// Get the instancing material if this mesh qualifies.
a mesh will be drawn using an instancing material hook if it has less than 200 vertices in it. However this is not too optimal in all cases as for instance you might have several different models with < 200 verts in them with no commonality between them.

Drawing a single model with instancing is not a particularly good use of rendering time, especially in OpenGL as the renderer needs to stuff the model position in another vertex buffer, as opposed to just setting the uniform modelview.

Thoughts anyone? Personally I would have thought specifying this elsewhere like in the material itself would make more sense.

@Bloodknight
Copy link
Contributor

@Bloodknight Bloodknight commented Jun 23, 2014

Questions...

What is the real cost overhead, and is this instantly recovered if the same model is used twice?
What is the cost of instancing a model with variety of vert thresholds, 500, 1000, 2000, 5000, 10000?
What is the cost of instancing vs not instancing 2 models at a variety of vert thresholds 500, 1000, 2000, 5000, 10000?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants