December 25, 2014, 17:40 (GMT) |
Cycles: Distance optimization for QBVH This commit implements heuristic which allows to skip nodes pushed to the stack from intersection if distance to them is larger than the distance to the current intersection. This should solve speed regression which i didn't notice in the original QBVH commit (which could have because i had WIP version of this patch applied in my local branch). From quick tests speed seems to be much closer to what is was with regular BVH. There's still some possible code cleanup, but they'll need a bit of assembly code check and now i want to make it so artists can happily use Cycles over the holidays. |
December 25, 2014, 15:52 (GMT) |
Merge branch 'master' into mesh-transfer-data Conflicts: source/blender/makesrna/intern/rna_modifier.c |
December 25, 2014, 14:17 (GMT) |
SCons: Don't regenerate icons if not changes This is rather a handbook example how NOT to do things in SCons, ideally it should be official SCons target so all the dependencies and source file modification stops being our worry. Especially since for CMake we already do have an app to do generate all the data. I don't have time to clean this up now but this constant icons regeneration just pisses me off atm. |
December 25, 2014, 14:12 (GMT) |
OSX: revive GHOST_HACK_getFirstFile cause it breaks things on older OSX versions. Dunno exactly why this was done earlier, but propose not to remove code not understood. |
December 25, 2014, 11:55 (GMT) |
Refactor 'immediate search' feature Currently, code just checks whether a text-edited button uses a given icon (VIEWZOOM) to decide to apply changes on each typed char. This patch adds a propper button flag (UI_BUT_TEXTEDIT_UPDATE) and a dedicated RNA flag (PROP_TEXTEDIT_UPDATE) for that. It's also now usable not only for text buttons, but also for example for num buttons when in 'text edit' mode, etc. It also fixes an actual bug, which is for text properties, in 'immediate' mode, hitting escape would not restore org value, because `ui_apply_but_TEX()` would set its orgstr to NULL on first call (giving it to `but->rename_orig` instead of copying it). Note no change in behavior is expected from user POV. Update for addons using that 'VIEWZOOM' icon 'feature' will follow (if any). Reviewers: campbellbarton Reviewed By: campbellbarton Projects: #user_interface, #bf_blender:_next Differential Revision: https://developer.blender.org/D938 |
December 25, 2014, 11:18 (GMT) |
Revert QBVH switch, after discussion with Sergey. |
December 25, 2014, 10:45 (GMT) |
Fix T42938: image.save_render sometimes saved the wrong pass Stupid mistake with non0initialized image user. Safe for final 2.73 release branch. |
December 25, 2014, 09:30 (GMT) |
Cycles: Fix really bad bug with shadow rays on non-SSE CPUs basically shadow rays were totally broken and most of the time did not record any intersections, leading to really ad rendering artifacts. This commit makes it so regardless of enabled optimization level render result would be the same. |
December 25, 2014, 09:15 (GMT) |
Cycles: Workaround CUDA 6.5.16 error after watertight commit This issue doesn't happen with 6.5.12 and there's slight piece of hope it'll be fixed in next toolkit releases.. For now we're forcing CUDA to not inline ray precalculation. This could lead to some speed regression, but wouldn't expect it to be huge -- this code does not run that often comparing to actual triangle intersection. |
December 25, 2014, 09:11 (GMT) |
Cycles: Fix compilation error on non-SSE2 architectures |
December 25, 2014, 01:50 (GMT) |
Cleanup: Fix Cycles Apache header. This was already mixed a bit, but the dot belongs there. |
December 25, 2014, 01:42 (GMT) |
Cleanup: Typo fixes for comments. |
December 25, 2014, 01:19 (GMT) |
Cycles: Expose QBVH on/off switch to the UI. We might remove this again in the future, but for testing purposes during the release cycle, this will be useful. The setting defaults to QBVH, and can be found in the Performance panel. |
December 24, 2014, 21:50 (GMT) |
Cycles: Correction for node tail copy on packing BVH This is harmless for now because tail of the node is zero in there, but better to fix it early so in the case of extending BVH nodes this code doesn't give issues. |
December 24, 2014, 21:50 (GMT) |
Cycles: Enable QBVH optimization structure for SSE2 CPUs This commit enables QBVH optimization structure automatically if rendering with CPU and SSE2 support is detected. This brings render time of agent shot back to the speed it used to be before the watertight intersections commit, single koro and sponza scenes are about 7% faster here. |
December 24, 2014, 21:50 (GMT) |
Cycles: Implement QBVH tree traversal This commit implements traversal for QBVH tree, which is based on the old loop code for traversal itself and Embree for node intersection. This commit also does some changes to the loop inspired by Embree: - Visibility flags are only checked for primitives. Doing visibility check for every node cost quite reasonable amount of time and in most cases those checks are true-positive. Other idea here would be to do visibility checks for leaf nodes only, but this would need to be investigated further. - For minimum hair width we extend all the nodes' bounding boxes. Again doing curve visibility check is quite costly for each of the nodes and those checks returns truth for most of the hierarchy anyway. There are number of possible optimization still, but current state is good enough in terms it makes rendering faster a little bit after recent watertight commit. Currently QBVH is only implemented for CPU with SSE2 support at least. All other devices would need to be supported later (if that'd make sense from performance point of view). The code is enabled for compilation in kernel. but blender wouldn't use it still. |
December 24, 2014, 21:50 (GMT) |
Cycles: Store proper empty boundbox for missing child nodes in QBVH The idea is to make sure those childs would never be intersected with a ray in order to make it so kernel never worries about number of child nodes. |
December 24, 2014, 21:50 (GMT) |
Cycles: Code cleanup, de-duplicate definition of FEATURE Previously every BVH traversal file was defining macro to check which features should be compiled in, now this macro is defined in the parent header. |
December 24, 2014, 21:50 (GMT) |
Cycles: Rework BVH functions calls a little bit Basic idea is to allow multiple implementation per feature-set, meaning this commit tries to make it easier to hook new algorithms for BVH traversal. |
December 24, 2014, 21:50 (GMT) |
Cycles: Add some utility functions and structures Most of them are not currently used but are essential for the further work. - CPU kernels with SSE2 support will now have sse3b, sse3f and sse3i - Added templatedversions of min4, max4 which are handy to use with register variables. - Added util_swap function which gets arguments by pointers. So hopefully it'll be a portable version of std::swap. |
|
|
|


Master Commits
MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021