Skip to content

Conversation

@matteobettini
Copy link
Member

@matteobettini matteobettini commented Nov 29, 2023

This PR contains a MAJOR rework of the collsions and constraints engine.

While before the physics were vectorized in the enviornments but we were still doing a double for loop over agents to check collisions, now this has been reworked and the double loop has been replaced by vectorized code over the agents.

This will mean that in the interface of vmas nothing changes but envioronments will be up to 10000x faster and growing in the number of entities will not be a problem

cc @Acciorocketships @janblumenkamp @smorad @alexandrashaw10

@matteobettini matteobettini marked this pull request as ready for review November 29, 2023 19:00
@matteobettini matteobettini marked this pull request as draft November 29, 2023 19:00
@matteobettini matteobettini changed the title [Perf] Vectorized collsions and other major per improvements [Perf] Vectorized collisions and other major per improvements Nov 30, 2023
@matteobettini matteobettini changed the title [Perf] Vectorized collisions and other major per improvements [Perf] Vectorized collisions and other major perf improvements Nov 30, 2023
@matteobettini matteobettini marked this pull request as ready for review November 30, 2023 12:26
@matteobettini matteobettini merged commit b1112e9 into main Nov 30, 2023
@matteobettini matteobettini deleted the perf branch November 30, 2023 16:24
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.

2 participants