Skip to content

Drop agents beyond consts::kMaxAgentCount - #124

Merged
SamanKazemkhani merged 1 commit into
mainfrom
sk/skip-beyond-128
May 22, 2024
Merged

SamanKazemkhani merged 1 commit into
mainfrom
sk/skip-beyond-128

Conversation

@SamanKazemkhani

@SamanKazemkhani SamanKazemkhani commented May 16, 2024

Copy link
Copy Markdown
Collaborator

This alters the behavior of gpudrive to avoid constructing agents if consts::kMaxAgentCount already exist.

@daphne-cornelisse

daphne-cornelisse commented May 16, 2024

Copy link
Copy Markdown
Contributor

Just to clarify, say there are 150 agents (vehicles + pedestrians + cyclists) and kMaxAgentCount is set to 128, removing this assert will only create the first 128 agents and disregard the remaining 22, is that correct?

@daphne-cornelisse

Copy link
Copy Markdown
Contributor

Another check: Can we control vehicles, cyclists, and pedestrians?

@SamanKazemkhani

Copy link
Copy Markdown
Collaborator Author

Yes, that's correct

@aaravpandya aaravpandya left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

Just removing this assert will not ensure dropping agents beyond kMaxAgentCount. The JsonSerialization.hpp does not respect the kMaxAgentCount bound.

@SamanKazemkhani
SamanKazemkhani merged commit 36af020 into main May 22, 2024
@eugenevinitsky
eugenevinitsky deleted the sk/skip-beyond-128 branch May 22, 2024 20:45
wangbingke0 pushed a commit to wangbingke0/gpudrive that referenced this pull request Feb 13, 2026
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.

4 participants