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

Now I am rendering thousands of shelves, with products on each layer, and the rendering process is quite slow. How should I optimize it? #2176

Closed
zhw1992 opened this issue Mar 19, 2024 · 5 comments

Comments

@zhw1992
Copy link

zhw1992 commented Mar 19, 2024

No description provided.

@holance
Copy link
Member

holance commented Mar 19, 2024

Try to use instancing as much as possible to reduce draw calls. Use lightweight materials such as diffuse material if you don't need realistic lighting. Simplify model mesh to reduce number of polygons.

@zhw1992
Copy link
Author

zhw1992 commented Mar 20, 2024

@holance
Could you please provide a demo that reduces the number of drawing calls?

@holance
Copy link
Member

holance commented Mar 20, 2024

Source/Examples/WPF.SharpDX/InstancingDemo

@zhw1992
Copy link
Author

zhw1992 commented Mar 25, 2024

@holance Does the WPF library have such instancing technology?

@holance
Copy link
Member

holance commented Mar 25, 2024

Only available in SharpDX version

@holance holance closed this as completed Jun 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants