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 in renderer #1537

Open
heinezen opened this issue Sep 17, 2023 · 0 comments
Open

Instancing in renderer #1537

heinezen opened this issue Sep 17, 2023 · 0 comments
Labels
area: renderer Concerns our graphics renderer improvement Enhancement of an existing component lang: c++ Done in C++ code

Comments

@heinezen
Copy link
Member

Instancing describes the process of drawing multiple objects with the same uniform data in a single draw call. We could use this technique for objects that look the same and just have different positions in the scene. Viable candidates from AoE2 would be:

  • ambient objects (cliffs, grass, cactus)
  • resources (trees, stone/gold mines)
  • (some) buildings

Rendering these objects all at once could save a lot of rendering time.

To implement this, the renderer needs to have a mechanism to figure out which objects are part of which instance. We could assign animations to instances via the nyan API. This would make instances available via manual configuration. An automated mechanism would probably be much more tricky.

@heinezen heinezen added improvement Enhancement of an existing component area: renderer Concerns our graphics renderer lang: c++ Done in C++ code labels Sep 17, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: renderer Concerns our graphics renderer improvement Enhancement of an existing component lang: c++ Done in C++ code
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant