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

Faster multi agent vulkan rendering #8

Merged
merged 2 commits into from Apr 13, 2021
Merged

Conversation

erikwijmans
Copy link
Collaborator

Feature of lists instead of a list of features is more efficient when there are a lot of agents. In my testing, this change does not really matter for 1, 2, or 4 agents, but starts helping at 8 or more.

}

sceneObjectInfo.objectPtr->addFeature<V4RDrawable>(
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So the change here is that instead of having one Magnum feature for every pair agent-3D object we only have one feature per object. And it handles its own update in all "render envs", i.e. for all agents at once.

I like this! Indeed this should minimize the amount of work on Magnum side, and it makes more sense in general.

I trust you that it works, good contribution!

@alex-petrenko alex-petrenko merged commit d40a623 into master Apr 13, 2021
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

Successfully merging this pull request may close these issues.

None yet

2 participants