-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ENH: SampleSurfaceMesh and GeometryMath Speed Optimizations (#1020)
* Add caching routine - approx 15% speedup * Clear excessive branching and excess copying * extract costly construction in tight loop * Consolidate if statement calculations, strip expensive modulo with bitwise calculation, reenable randomness * strip extraneous coping, further if cleanup * Initial Ray changes to attempt to preserve pure c++, converted 'DoesRayIntersectBox` if statements * Add a caching version of Ray to prevent repeated calculations for the same result in loops. Selected to preserve existing API * extract if statements in favor of integer math for CPU pipeline speed, parameter reordering for clearer distinction in overloads * clean up remaining ifs and reduce ray misses by appropriately sizing ray * patch bounding box bug in branchless calculations * repair overlooked functionality in Ray (cached version) * Default seed cleans up output and speeds up process * Modified Ray class * walk back branchless changes -- processing time is roughly equivalent between branched and branchless, and branched is more readable * Add type declarations for Clang Compiler
- Loading branch information
Showing
9 changed files
with
491 additions
and
144 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.