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

Only delay OpticalPhotons if discard macro is set #132

Merged
merged 2 commits into from
Oct 17, 2024

Conversation

EricMEsch
Copy link
Contributor

Currently, the optical photons will always be put on the waiting stack, even if the discard macro is not set. This means, they will be simulated anyways, but will consume (a lot of) memory on the stack while they are waiting.

This will only put them on the stack if the possibility exists for them to be discarded later.

@ManuelHu ManuelHu merged commit 6cc4359 into legend-exp:main Oct 17, 2024
5 of 6 checks passed
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