Blender Git Loki

Blenderin Git "master"-kehityshaaran kommitit.

Page: 2676 / 5574

February 14, 2015, 21:01 (GMT)
Cycles: Add ifdef switch to use blender's guardedalloc for vector allocation

It's actually a bad level call, but it's inside ifdef block and disabled by
default and only intended to be used for development purposes.

Main idea of this change is to combine statistics coming from Cycles and
Blender during scene synchronization step, to see if further changes are
actually reducing memory footprint.
February 14, 2015, 21:01 (GMT)
Cycles: Add utility method to vector which totally frees memory used the vector

The method is called vector::free_memory(). Use with care since it'll invalidate
all the pointers to vector memory, all iterators and so on.

Currently unused, but might become handy when clearing unused data.
February 14, 2015, 21:01 (GMT)
Cycles: Report system memory usage and peak after scene device update

This only happens when built with WITH_CYCLES_DEBUG flag, memory statistics
is coming from guarded STL allocator.
February 14, 2015, 21:01 (GMT)
Cycles: Implement guarded allocator for STL classes

The commit implements a guarded allocator which can be used by STL classes
such as vectors, maps and so on. This allocator will keep track of current
and peak memory usage which then can be queried.

New code for allocator is only active when building Cycles with debug flag
(WITH_CYCLES_DEBUG) and doesn't distort regular builds too much.

Additionally now we're using own subclass of std::vector which allows us
to implement shrink_to_fit() method which would ensure capacity of the
vector is as big as it should be (without this making vector smaller will
still use all previous memory allocated).
February 14, 2015, 21:01 (GMT)
Cycles: Replace own aligned allocator with system one

This replaces our own implementation of aligned malloc with system calls,
which depends on which operation system you're on.

This is probably really minor noticeable change, but in the same time it
might reduce amount of wasted memory.
Revision 24976dd by Julian Eisel
February 14, 2015, 20:54 (GMT)
Outliner: Toggle restrict buttons only for selectable child objects

D404 by @rupp with minor edits by me.
February 14, 2015, 19:57 (GMT)
Cleanup: Comment block for sse helpers.
February 14, 2015, 19:44 (GMT)
Cycles: Small improvement for volume render (decoupled)

Simplify branching here a bit, helps ~3% in volume_light_sampling.blend (Branched MIS scene).
February 14, 2015, 16:33 (GMT)
Cycles: Fix compilation error of Cycles standalone with Libmv disabled
Revision db297e7 by Lukas Toenne
February 14, 2015, 15:40 (GMT)
Revert "Fix T43471, based on patch submitted by @sean_loh."

This reverts commit b2b54b0902045ec4f0c1a4cae3209be863878f5b.

The patch breaks particle distribution even in simple cases, not worth
doing this for keeping a hackish loophole open.
February 14, 2015, 11:29 (GMT)
object drawing: only use halo-draw in object mode
Revision dd6edac by Joshua Leung
February 14, 2015, 11:06 (GMT)
Bring copy/free operations into line with changes in previous commit
Revision ec2ede4 by Joshua Leung
February 14, 2015, 11:06 (GMT)
Bugfix: Referencing actions from Action Actuator was not setting a user

This reverts the change made in 8872cba7e956a9d9a840e55e5323945497524795
which was contributing to actions being lost in some cases [1], even when
they were assigned to those actuaters, which needed them to be able to
function. Now there's one less case where users are needed but were missing :)

Note that this still doesn't solve the core issue where nothing is responsible
for associating actions created for a particular datablock (and not currently
being used in its active action slot, or in the NLA stack) with that datablock.
That issue is the cause of most action disappearances as well as for other problems
(such as renaming bones being unable to fix unreferenced/unused actions) where there
are diifferences between users' mental models and the data model. Proper fixes are
coming soon (restoring fake users here isn't a proper fix, as it only masks the
fundamental mismatch/problem here).


[1] http://blenderartists.org/forum/showthread.php?357021-BGE-loses-actions
February 14, 2015, 10:13 (GMT)
CMake: Enable JeMalloc by default

It's really handy to have blender linked against jemalloc because of
much better memory fragmentation handling by that library.

To be noted: if jemalloc library is not found it'll be disabled with
message about that, no compilation error should happen.
February 14, 2015, 07:29 (GMT)
CMake: Add search path for jemalloc which corresponds to own and studio setup
February 13, 2015, 21:00 (GMT)
Refactor array_utils out of BLI_array

BLI_array.h is for resizing array macros, where as array_utils can operate on any arrays.
February 13, 2015, 21:00 (GMT)
cleanup: doxy comments
February 13, 2015, 21:00 (GMT)
Comments: use doxy sections for nodes header
February 13, 2015, 20:30 (GMT)
Purge temporary files on abort

This way both BLI_assert() and abort() called directly shouldn't
leave any files in the temp folder.

Previously it was really possible to have gadzillions of files
left over because of assert failures and debug aborts during the
development process.
February 13, 2015, 13:38 (GMT)
Fix T43585 XRay + transparency broken

We need to turn off restore depth mask in transparency.
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021