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

A large amount of memory reserved but unnecessary #236

Open
kurtlau opened this issue Jan 24, 2024 · 1 comment · May be fixed by #237
Open

A large amount of memory reserved but unnecessary #236

kurtlau opened this issue Jan 24, 2024 · 1 comment · May be fixed by #237
Assignees

Comments

@kurtlau
Copy link

kurtlau commented Jan 24, 2024

void Collection::add(PxCollection& _collection)
{
Collection& collection = static_cast<Collection&>(_collection);
PX_CHECK_AND_RETURN(this != &collection, "PxCollection::add(PxCollection&) called with itself!");
mObjects.reserve(mObjects.capacity() + collection.mObjects.size());

After add collections for several times, a large amount of memory reserved but unnecessary.

@kurtlau kurtlau linked a pull request Jan 24, 2024 that will close this issue
@preist-nvidia
Copy link
Collaborator

Thank you for the report and PR! We'll have a look. Internal tracking: PX-4763.

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 a pull request may close this issue.

3 participants