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

Use of DEBUG Symbol #11

Closed
chadefranklin opened this issue Oct 9, 2022 · 1 comment
Closed

Use of DEBUG Symbol #11

chadefranklin opened this issue Oct 9, 2022 · 1 comment

Comments

@chadefranklin
Copy link
Contributor

chadefranklin commented Oct 9, 2022

DEBUG define symbol is always active in the Unity Editor which is leading to Assertions being active... slowing performance and cluttering the Burst Inspector with many branches. I'm not sure what the best remedy for this is. Maybe using ENABLE_UNITY_COLLECTIONS_CHECKS instead so at least Burst can get rid of them.

@MrUnbelievable92
Copy link
Owner

MrUnbelievable92 commented Oct 9, 2022

ENABLE_UNITY_COLLECTIONS_CHECKS would add an unnecessary dependency on the Unity.Collections package.
There is a functionality for disabling all/some assertions in the editor via Window/C# Dev Tools/Manage Safety Checks... for performance tests or editor scripts.

This is technically closed but I'll pin it for others to read.

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

No branches or pull requests

2 participants