Blender Git Loki

Kaikki Blender Git kommitit.

Page: 1831 / 8462

February 26, 2020, 14:33 (GMT)
Fix T74221 Crash when changing Image Source in UV editor
February 26, 2020, 14:05 (GMT)
Merge branch 'undo-experiments' into undo-experiments-swap-reread-datablocks
February 26, 2020, 14:04 (GMT)
Merge branch 'id-ensure-unique-memory-address' into undo-experiments
February 26, 2020, 14:02 (GMT)
Ensure IDs get unique memory addresses withing q given editing session.

Disclaimer: this should be considered as an engeneering, explanatory patch.

Rational: for undo work, we are now manipulating IDs from potentially many different 'memory realms' (in contrast to current undo system, where, since we always reallocate the whole main database at each undo step, we only ever have to deal with two, the old one from the memfile, and the new one from re-read data from that memfile).

So far, new undo system has used ID names-based search to remap old to new pointers, but this is slower, less safe, and forces us to do full undo barrier e.g. when renaming an ID.

Idea of this patch is instead to ensure that within a given editing session, we never ever allocate a data-block at the same address twice. That way, we can consider ID pointers as valid UIDs withing that scope, and use their values to handle remapping in udo steps even in case an ID has had several memory addresses in the history of the editing session.

This patches does two things:
# Add a way to ensure a newly allocated ID gets a memory address never used before for any ID.
# Store the history of all memory addresses ever used by a given ID.

Note that point 1 above is currently using a fairly simple and naive solution, but also quiet innefficient (just allocating again and again until we get a 'free' address), we can imagine a much more efficient solution if we go deeper in MEM_ allocator system itself. Not sure if it is worth it though, as with new undo system actual re-allocation of a same ID at a different address should be fairly rare (i.e. history of used/forbidden addresses should remain quiet short).

Differential Revision: https://developer.blender.org/D6937
February 26, 2020, 13:59 (GMT)
EEVEE: Fix crash on certain drivers caused by redefined constant
February 26, 2020, 13:15 (GMT)
Merge branch 'master' into id-ensure-unique-memory-address
February 26, 2020, 11:54 (GMT)
Various updates/cleanups after recent changes.

Mainly:
* Use a simple `GSet` instead of an `IDNameLib_Map` for storing valid
old IDs pointers (since we do not need to complex name-based search
anymore).
* Use new `BKE_main_idmemhash_lookup_id` helper to search into history
of IDs memaddresses.
February 26, 2020, 11:50 (GMT)
Merge branch 'undo-experiments' into undo-experiments-swap-reread-datablocks
February 26, 2020, 11:50 (GMT)
Merge branch 'id-ensure-unique-memory-address' into undo-experiments
February 26, 2020, 11:48 (GMT)
Cleanup; add missing static statement.
February 26, 2020, 11:47 (GMT)
Fix build error on Windows
February 26, 2020, 11:43 (GMT)
Merge branch 'undo-experiments' into undo-experiments-swap-reread-datablocks
Revision e70484d by Brecht Van Lommel (new-object-types)
February 26, 2020, 11:36 (GMT)
Merge branch 'master' into new-object-types
Revision 2d1be6b by Brecht Van Lommel (new-object-types)
February 26, 2020, 11:30 (GMT)
Merge branch 'master' into new-object-types
February 26, 2020, 11:28 (GMT)
Cleanup: don't set renderpass_block twice for volumes
February 26, 2020, 11:27 (GMT)
UI: add kerning menu for 3D text editing
February 26, 2020, 11:21 (GMT)
Fix for recent merge.
February 26, 2020, 11:19 (GMT)
Merge branch 'id-ensure-unique-memory-address' into undo-experiments
February 26, 2020, 11:19 (GMT)
Rework a bit re-allocating code, add a lookup utils for history memaddresses.
February 26, 2020, 11:07 (GMT)
Cleanup: avoid path copy in XDG support
Tehnyt: Miika HämäläinenViimeksi päivitetty: 07.11.2014 14:18MiikaH:n Sivut a.k.a. MiikaHweb | 2003-2021