-
Notifications
You must be signed in to change notification settings - Fork 117
refactor: Remove obsolete pragma optimize directives #1649
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
refactor: Remove obsolete pragma optimize directives #1649
Conversation
|
|
||
|
|
||
| // This routine fails to draw poly triggers in some cases when optimized. | ||
| // So just shut it off for now. The failure case was new doc, add a poly trigger. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I tested this with VS2022 Release build and was unable to reproduce it.
| } | ||
|
|
||
| #ifdef RTS_DEBUG | ||
| #pragma optimize("", off) // We get an odd error when using optimized in the debug. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We decoupled RTS_DEBUG from optimization already anyway, so this must go. This is called when hovering units, sometimes. I do not know what the error would have been. We do not care.
|
Replicated in Generals with conflicts |
This change removes obsolete pragma optimize directives.
TODO