Go to file
Sergey Sharybin 68478aea01 Cycles: Avoid having duplication of BVH arrays during build
Previous idea behind having vector during building and array for actual storage
was needed in order to minimize amount of re-allocations happening during the
build, but it lead to double memory overhead used by those arrays at the vector
to array conversion stage.

Issue with such approach was that for BVH without spatial split size of arrays
is known in advance and it never changes, which made vector to array conversion
totally redundant.

Also after testing with several rather complex from spatial split scenes (such
as trees) it seems even conservative approach of reallocation (when we perform
re-allocation when leaf does not fit into the memory) doesn't give measurable
difference in time.

This makes it so we can switch to array, which will avoid unneeded memory
re-allocations when spatial split is disabled without harming other cases.

it's a bit difficult to measure exact benefit of this change on our production
files here, but depending on the scene it might give quite reasonable memory
save.
2015-06-28 18:15:25 +02:00
build_files CMake: quiet warnings in GTest 2015-06-23 14:34:52 +10:00
doc BGE: added clamping of angular velocity. 2015-06-28 12:54:53 +02:00
extern CMake: quiet warnings in GTest 2015-06-23 14:34:52 +10:00
intern Cycles: Avoid having duplication of BVH arrays during build 2015-06-28 18:15:25 +02:00
release BGE: added clamping of angular velocity. 2015-06-28 12:54:53 +02:00
scons@625d446ae8 Fixed border extension for the sunbeams node. 2014-09-23 11:42:11 +02:00
source BGE: added clamping of angular velocity. 2015-06-28 12:54:53 +02:00
tests Cleanup: int/uint mismatch in printf... 2015-06-27 11:02:58 +02:00
.arcconfig Use HTTPS protocol for arc 2013-12-24 22:57:27 +06:00
.gitignore Revert "ignore conflict files" 2014-08-08 06:00:49 +10:00
.gitmodules
CMakeLists.txt CMake: set advanced var 2015-06-17 14:25:05 +10:00
COPYING
GNUmakefile CMake: use functions instead of macros 2015-06-17 09:38:24 +10:00
SConstruct Fix T44968: Python executable crashes due to missing .DLL 2015-06-10 13:41:06 +05:00