Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-01-20Cycles: Fix wrong transparent shadows for motion blur hairSergey Sharybin
This was a missing bit from b53ce9a.
2017-01-20Cycles: Prepare BVH traversal code to work with multiple curve primitives ↵Sergey Sharybin
per node
2017-01-20Cycles: Correct assert() for cases when there are multiple curves per BVH nodeSergey Sharybin
2017-01-20Cycles: Use dedicated debug passes for traversed nodes and intersection testsSergey Sharybin
This way it's more clear whether some issue is caused by lots of geometry in the node or by lots of "transparent" BVH nodes.
2017-01-20Cycles: Use new SSE version of offset calculation for all QBVH flavorsSergey Sharybin
Gives up to ~1% speedup again. While it seems to be small, still nice since the code now is actually more clean that it used to be before.
2017-01-20Cycles: Move QBVH near/far offset calculation to an utility functionSergey Sharybin
Just preparing for new optimization to be used in all traversal implementation. Should be no measurable difference.
2017-01-20Cycles: BVH-related SSE optimizationSergey Sharybin
Several ideas here: - Optimize calculation of near_{x,y,z} in a way that does not require 3 if() statements per update, which avoids negative effect of wrong branch prediction. - Optimization of direction clamping for BVH. - Optimization of point/direction transform. Brings ~1.5% speedup again depending on a scene (unfortunately, this speedup can't be sum across all previous commits because speedup of each of the changes varies from scene to scene, but it still seems to be nice solid speedup of few percent on Linux and bigger speedup was reported on Windows). Once again ,thanks Maxym for inspiration! Still TODO: We have multiple places where we need to calculate near x,y,z indices in BVH, for now it's only done for main BVH traversal. Will try to move this calculation to an utility function and see if that can be easily re-used across all the BVH flavors.
2017-01-20Cycles: Make regular bvh traversal functions close to each otherSergey Sharybin
2017-01-20Cycles: Re-group ifdef so we check for particular feature only onceSergey Sharybin
2017-01-20Cycles: Avoid conversion from bool to uintSergey Sharybin
2017-01-20Cycles: More tweaks to make specialized BVH traversal matchingSergey Sharybin
2017-01-20Cycles: Avoid redundant intersection pre-calculationSergey Sharybin
2017-01-20Cycles: Cleanup, sync some comments across different traversalSergey Sharybin
2017-01-20Cycles: Cleanup, always use parenthesisSergey Sharybin
Makes it simpler to compare different traversal algorithms.
2017-01-20Cycles: Also support the constant emission speedup for mesh lightsLukas Stockner
Reviewers: brecht, sergey, dingto, juicyfruit Differential Revision: https://developer.blender.org/D2220
2016-10-19Fix Cycles CUDA performance on CUDA 8.0.Brecht Van Lommel
Mostly this is making inlining match CUDA 7.5 in a few performance critical places. The end result is that performance is now better than before, possibly due to less register spilling or other CUDA 8.0 compiler improvements. On benchmarks scenes, there are 3% to 35% render time reductions. Stack memory usage is reduced a little too. Reviewed By: sergey Differential Revision: https://developer.blender.org/D2269
2016-10-19Cycles: Cleanup file headersSergey Sharybin
Some of the files were wrongly attributing code to some other organizations and in few places proper attribution was missing. This is mainly either a copy-paste error (when new file was created from an existing one and header wasn't updated) or due to some refactor which split non-original-BF code with purely BF code. Should solve some confusion around.
2016-10-19Cycles: Move BVH constants to an own files, so they are easily re-usableSergey Sharybin
2016-08-25Cycles: Support proper visibility check in single volume intersection step ↵Sergey Sharybin
for QBVH
2016-08-25Cycles: Implement proper visibility check in QBVH volume all intersectionSergey Sharybin
2016-08-01Cycles: Tweaks to support CUDA 8 toolkitSergey Sharybin
All the changes are mainly giving explicit tips on inlining functions, so they match how inlining worked with previous toolkit. This make kernel compiled by CUDA 8 render in average with same speed as previous kernels. Some scenes are somewhat faster, some of them are somewhat slower. But slowdown is within 1% so far. On a positive side it allows us to enable newer generation cards on buildbots (so GTX 10x0 will be officially supported soon).
2016-07-26Cycles: Revert previous fixes to intersect_all functionsSergey Sharybin
While they prevent legit write past the array boundary error those fixes introduced regression in behavior when having exact max_hits transparent intersections and nothing else. Previous code would have considered such case a totally opaque, but it's not correct. Fixes T48941: Some materials don't get transparent shadows anymore
2016-07-14Cycles: Fix wrong termination criteria in intersect_all functionsSergey Sharybin
It was possible to miss bounces termination criteria in this functions, mainly when max_hits was set to 0. Made the check more robust in traversal functions (which should not affect performance, it's an operation of same complexity AFAIK). Also avoid doing ray-scene intersection from shadow_blocked when limit of transparent bounces was already reached.
2016-07-11Cycles: Fix compilation error on Windows with OSL enabledSergey Sharybin
Seems there's some conflict around `near` identifier in that configuration.
2016-07-11Cycles: Fix typoSergey Sharybin
2016-07-11Fix T48824: Crash when having too many ray-to-volume intersectionsSergey Sharybin
Code might have writing past the array boundaries.
2016-07-11Cycles: Use utility define for restrict pointersSergey Sharybin
This way restrict can be used for CUDA and OpenCL as well. From quick tests in areas i've been testing this it might give some barely measurable %% of speedup, but it increases registers pressure. So use of this qualifier is still really limited.
2016-07-11Cycles: Cleanup, variables nameSergey Sharybin
Using camel case for variables is something what didn't came from our original code, but rather from third party libraries. Let's avoid those as much as possible.
2016-07-11Cycles: Add _all suffix to shadow traversal fileSergey Sharybin
Matches better naming of volume traversal files, where we've got optimized versions of a single step of volume intersection and traversal which will gather all volume intersections.
2016-07-11Cycles: Move BVK kernel files to own directorySergey Sharybin
BVH traversal is not really that much a geometry and we've got quite some traversals now. Makes sense to keep them separate in the name of source structure clarity.