-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
VRAD: Fix thread-sharing bug #141
Conversation
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.
Could you wrap these in #ifdef _DEBUG
/ #endif
?
Just in raytrace, or in float_bm4 too? |
Also, the original code doesn't work as-intended because it isn't an atomic int and the raytracing system is multithreaded. I can also go ahead and change that too. |
Out of curiosity, is the |
Additionally, the linked PR also proposes upping |
@GamerDude27 Please move the MAX_THREADS discussion to a new issue, thanks! |
@mastercoms I'm still curious about my first question though! |
rip bro @devvoid |
This reverts commit 0d63ec8.
This reverts commit 4267429.
The raytracing code has debug variable
n_intersection_calculations
. This was used solely for debugging, but its existence caused a massive bottleneck in VRAD; performance nearly doubles on some systems without it.More information and some performance testing can be found here: ValveSoftware/source-sdk-2013#436