http://www.miikahweb.com/feed.php MiikaHweb - Blender Readfile-rework-refcount-handling Branch http://www.miikahweb.com/ MiikaHweb - Blender Readfile-rework-refcount-handling Branch fi Sat, 16 Jan 21 02:17:49 +0000 MiikaHweb RSS contact at miikahweb.com <![CDATA[[91fd432]: Merge branch 'master' into readfile-rework-refcount-handling]]> http://www.miikahweb.com/en/blender/git-logs/commit/91fd432afe15aad397eaad5f0cd90831d49917b3 91fd432
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into readfile-rework-refcount-handling

----------------------------------------
0 Paths Changed]]>
Wed, 19 Feb 2020 13:07:26 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/91fd432afe15aad397eaad5f0cd90831d49917b3Bastien Montagne
<![CDATA[[dc0f53c]: Merge branch 'master' into readfile-rework-refcount-handling]]> http://www.miikahweb.com/en/blender/git-logs/commit/dc0f53c93694cb38920abc056c1327b771c93c3c dc0f53c
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into readfile-rework-refcount-handling

----------------------------------------
0 Paths Changed]]>
Wed, 19 Feb 2020 11:49:34 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/dc0f53c93694cb38920abc056c1327b771c93c3cBastien Montagne
<![CDATA[[b45ae17]: Merge branch 'master' into readfile-rework-refcount-handling]]> http://www.miikahweb.com/en/blender/git-logs/commit/b45ae177d9011d083a12a14ed581db7e72568430 b45ae17
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into readfile-rework-refcount-handling

----------------------------------------
0 Paths Changed]]>
Wed, 19 Feb 2020 09:17:59 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/b45ae177d9011d083a12a14ed581db7e72568430Bastien Montagne
<![CDATA[[b7b8399]: get rid of all remaining usage of `newlibadr_us` in readfile...]]> http://www.miikahweb.com/en/blender/git-logs/commit/b7b8399c51f39ee21eec1bde8aec0c38b50add40 b7b8399
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
get rid of all remaining usage of `newlibadr_us` in readfile code.

Old deprecated IPOs data-blocks are not refcounted at all anymore,
however that should not be an issue since after doversion we get rid of
them anyway.

----------------------------------------
2 Paths Changed]]>
Wed, 19 Feb 2020 09:30:50 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/b7b8399c51f39ee21eec1bde8aec0c38b50add40Bastien Montagne
<![CDATA[[ac346fd]: Merge branch 'master' into readfile-rework-refcount-handling]]> http://www.miikahweb.com/en/blender/git-logs/commit/ac346fd5fb7bf92839e99ee7f5a680a313fb9386 ac346fd
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Unknown ()
----------------------------------------
Merge branch 'master' into readfile-rework-refcount-handling

----------------------------------------
0 Paths Changed]]>
Tue, 18 Feb 2020 17:27:39 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/ac346fd5fb7bf92839e99ee7f5a680a313fb9386
<![CDATA[[537fddb]: Remove usercount handling from ui stuff in reafile as well.]]> http://www.miikahweb.com/en/blender/git-logs/commit/537fddbf16757fe7382ce5941bdbfaa479884fc1 537fddb
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Remove usercount handling from ui stuff in reafile as well.

----------------------------------------
1 Path Changed]]>
Tue, 18 Feb 2020 14:49:36 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/537fddbf16757fe7382ce5941bdbfaa479884fc1Bastien Montagne
<![CDATA[[f359e63]: Merge branch 'master' into readfile-rework-refcount-handling]]> http://www.miikahweb.com/en/blender/git-logs/commit/f359e63e2fb0a38c156edd74a826b30a34254380 f359e63
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into readfile-rework-refcount-handling

----------------------------------------
0 Paths Changed]]>
Tue, 18 Feb 2020 13:39:05 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/f359e63e2fb0a38c156edd74a826b30a34254380Bastien Montagne
<![CDATA[[fcd127b]: Fix bad placement of ID refcount recomputation in readfile.]]> http://www.miikahweb.com/en/blender/git-logs/commit/fcd127b815fd2e3e4b07585850ff4899110d4531 fcd127b
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Fix bad placement of ID refcount recomputation in readfile.

----------------------------------------
1 Path Changed]]>
Tue, 18 Feb 2020 14:39:29 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/fcd127b815fd2e3e4b07585850ff4899110d4531Bastien Montagne
<![CDATA[[3e29c2e]: Merge branch 'master' into readfile-rework-refcount-handling]]> http://www.miikahweb.com/en/blender/git-logs/commit/3e29c2e6d0a07646ce2377b229d534702c625c69 3e29c2e
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into readfile-rework-refcount-handling

----------------------------------------
0 Paths Changed]]>
Tue, 18 Feb 2020 10:24:51 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/3e29c2e6d0a07646ce2377b229d534702c625c69Bastien Montagne
<![CDATA[[e752eb4]: Merge branch 'libquery-handle-ui-pointers' into readfile-rework...]]> http://www.miikahweb.com/en/blender/git-logs/commit/e752eb4ae94a8aa54a6830587e787e6a7877aa1f e752eb4
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'libquery-handle-ui-pointers' into readfile-rework-refcount-handling

----------------------------------------
0 Paths Changed]]>
Tue, 18 Feb 2020 09:55:12 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/e752eb4ae94a8aa54a6830587e787e6a7877aa1fBastien Montagne
<![CDATA[[8fbc56b]: Merge branch 'master' into libquery-handle-ui-pointers]]> http://www.miikahweb.com/en/blender/git-logs/commit/8fbc56b32d39bdda54cee3a161cb7d2aa985b53d 8fbc56b
Branches : id-ensure-unique-memory-address, libquery-handle-ui-pointers, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into libquery-handle-ui-pointers

----------------------------------------
0 Paths Changed]]>
Tue, 18 Feb 2020 09:31:56 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/8fbc56b32d39bdda54cee3a161cb7d2aa985b53dBastien Montagne
<![CDATA[[8a73b03]: Fix crash on undo case.]]> http://www.miikahweb.com/en/blender/git-logs/commit/8a73b03fddbcb822433621015546d5e8e8402932 8a73b03
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Fix crash on undo case.

We cannot use libquery too early in undo case, because of all the black
magic we perform over our data-blocks there...

----------------------------------------
2 Paths Changed]]>
Fri, 14 Feb 2020 13:53:46 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/8a73b03fddbcb822433621015546d5e8e8402932Bastien Montagne
<![CDATA[[a608df8]: Cleanup: remove timing debug calls.]]> http://www.miikahweb.com/en/blender/git-logs/commit/a608df8e27b8231ab959d0143e4cc9bc0986139b a608df8
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Cleanup: remove timing debug calls.

We now know that extra time spent here is neglectable.

----------------------------------------
1 Path Changed]]>
Fri, 14 Feb 2020 13:55:03 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/a608df8e27b8231ab959d0143e4cc9bc0986139bBastien Montagne
<![CDATA[[7ea3e2e]: Merge branch 'libquery-handle-ui-pointers' into readfile-rework...]]> http://www.miikahweb.com/en/blender/git-logs/commit/7ea3e2ea82fb475f54898fdae29e64580fd1dc57 7ea3e2e
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'libquery-handle-ui-pointers' into readfile-rework-refcount-handling

----------------------------------------
0 Paths Changed]]>
Fri, 14 Feb 2020 11:55:30 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/7ea3e2ea82fb475f54898fdae29e64580fd1dc57Bastien Montagne
<![CDATA[[0e87f42]: Merge branch 'master' into libquery-handle-ui-pointers]]> http://www.miikahweb.com/en/blender/git-logs/commit/0e87f42950a6ef2ea93cfeec5222e8efeceb4a95 0e87f42
Branches : id-ensure-unique-memory-address, libquery-handle-ui-pointers, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into libquery-handle-ui-pointers

Conflicts:
source/blender/blenkernel/intern/lib_query.c

----------------------------------------
0 Paths Changed]]>
Fri, 14 Feb 2020 11:54:17 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/0e87f42950a6ef2ea93cfeec5222e8efeceb4a95Bastien Montagne
<![CDATA[[150d5e8]: Merge branch 'libquery-handle-ui-pointers' into readfile-rework...]]> http://www.miikahweb.com/en/blender/git-logs/commit/150d5e82ea06337332f5058d917c743dc86f7a14 150d5e8
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'libquery-handle-ui-pointers' into readfile-rework-refcount-handling

----------------------------------------
0 Paths Changed]]>
Fri, 14 Feb 2020 11:33:58 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/150d5e82ea06337332f5058d917c743dc86f7a14Bastien Montagne
<![CDATA[[e3825d6]: Merge branch 'master' into libquery-handle-ui-pointers]]> http://www.miikahweb.com/en/blender/git-logs/commit/e3825d637367b02ff18d00c38621768e8b525d08 e3825d6
Branches : id-ensure-unique-memory-address, libquery-handle-ui-pointers, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into libquery-handle-ui-pointers

----------------------------------------
0 Paths Changed]]>
Fri, 14 Feb 2020 11:29:17 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/e3825d637367b02ff18d00c38621768e8b525d08Bastien Montagne
<![CDATA[[5348310]: Merge branch 'master' into libquery-handle-ui-pointers]]> http://www.miikahweb.com/en/blender/git-logs/commit/53483104f76e032857ac53c939f06797e01a5078 5348310
Branches : id-ensure-unique-memory-address, libquery-handle-ui-pointers, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into libquery-handle-ui-pointers

----------------------------------------
0 Paths Changed]]>
Fri, 14 Feb 2020 08:55:02 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/53483104f76e032857ac53c939f06797e01a5078Bastien Montagne
<![CDATA[[9ae8f97]: Merge branch 'master' into libquery-handle-ui-pointers]]> http://www.miikahweb.com/en/blender/git-logs/commit/9ae8f97fed1ca5a1b4572a0a4fff5be314f86e3e 9ae8f97
Branches : id-ensure-unique-memory-address, libquery-handle-ui-pointers, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into libquery-handle-ui-pointers

----------------------------------------
0 Paths Changed]]>
Mon, 10 Feb 2020 17:49:00 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/9ae8f97fed1ca5a1b4572a0a4fff5be314f86e3eBastien Montagne
<![CDATA[[a544582]: Merge commit 'ddad044cfe13' into libquery-handle-ui-pointers]]> http://www.miikahweb.com/en/blender/git-logs/commit/a544582c215d138011300338ff43cce993383018 a544582
Branches : id-ensure-unique-memory-address, libquery-handle-ui-pointers, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge commit 'ddad044cfe13' into libquery-handle-ui-pointers

----------------------------------------
0 Paths Changed]]>
Mon, 10 Feb 2020 17:47:36 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/a544582c215d138011300338ff43cce993383018Bastien Montagne
<![CDATA[[f4e17b2]: libquery: add optional handling of 'UI' ID pointers.]]> http://www.miikahweb.com/en/blender/git-logs/commit/f4e17b25bd982cec5f693c48143e3dc36aeee649 f4e17b2
Branches : id-ensure-unique-memory-address, libquery-handle-ui-pointers, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
libquery: add optional handling of 'UI' ID pointers.

Handling those through different ways /might/ be needed sometimes, but
in most case this is just a nest of issues, since you can easily forget
to take them into account.

Note that this should be a 'non-functional' change, as this new behavior
is not used anywhere yet.

----------------------------------------
5 Paths Changed]]>
Fri, 07 Feb 2020 15:13:16 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/f4e17b25bd982cec5f693c48143e3dc36aeee649Bastien Montagne
<![CDATA[[ae46232]: Better handling of usages of usercount increment in readfile...]]> http://www.miikahweb.com/en/blender/git-logs/commit/ae462320b8206de387e81564f560576ee45000bd ae46232
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Better handling of usages of usercount increment in readfile liblink.

Some places could/should still need proper ID refcounting in liblink:
* UI data (spaces) - although this should be strictly 'user one' only...
* Deprectaed data/pointers which are not handled by libquery code.

Not sure whether IPO pointers really need usercount actually...

----------------------------------------
1 Path Changed]]>
Wed, 05 Feb 2020 16:52:34 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/ae462320b8206de387e81564f560576ee45000bdBastien Montagne
<![CDATA[[ea0dc96]: Merge branch 'master' into readfile-rework-refcount-handling]]> http://www.miikahweb.com/en/blender/git-logs/commit/ea0dc96d77c7513716d72e621d7167f5c7b62e8e ea0dc96
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Merge branch 'master' into readfile-rework-refcount-handling

Conflicts:
source/blender/blenloader/intern/readfile.c

----------------------------------------
0 Paths Changed]]>
Wed, 05 Feb 2020 16:04:59 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/ea0dc96d77c7513716d72e621d7167f5c7b62e8eBastien Montagne
<![CDATA[[8c75037]: readfile: Quick experiment with refcounting moved to libquery...]]> http://www.miikahweb.com/en/blender/git-logs/commit/8c7503726df916ea74d94b853960d983bee80ccb 8c75037
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
readfile: Quick experiment with refcounting moved to libquery.

Having that extra ID users handling at readfile level, besides generic
one ensured by libquery, has been something bothering me for a long time
(had to fix my share of bugs due to mismatches between those two areas).

Further more, work on undo speedup will require even more complex ID
refcount management if we want to keep it in readfile.c area.

So idea is instead to generalize what we did for linked data already
when undoing: recompute properly usercount numbers after liblink step,
for all IDs.

Note that extra time required here is neglectable in a whole .blend file
reading (few extra milliseconds when loading a full production scene
e.g.).

----------------------------------------
2 Paths Changed]]>
Mon, 03 Feb 2020 09:52:48 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/8c7503726df916ea74d94b853960d983bee80ccbBastien Montagne
<![CDATA[[9829a3c]: Refactor readfile's liblink code.]]> http://www.miikahweb.com/en/blender/git-logs/commit/9829a3c496743e0e6a557c9283f8c2cf2d9c1aa2 9829a3c
Branches : id-ensure-unique-memory-address, readfile-rework-refcount-handling, undo-experiments, undo-experiments-swap-reread-datablocks, uuid-undo-experiments, uuid-undo-experiments-swap-reread-datablocks
Author : Bastien Montagne (mont29)
----------------------------------------
Refactor readfile's liblink code.

Liblink specific ID type function was so far running a loop over all IDs
of relevant type, unlike almost any other 'ID-callback-like' functions
in Blender, which usually let the looping controll to calling code.

The latter approach is more convinient when one want to add generic
(i.e. type-agnostic) code, since it typically only has to change code in
one place (caller function) instead of tens of places (all the callback
functions).

This commit also changes/sanitizes a few things that had nothing to do
in main liblink code, like mesh conversion from tessfaces to polys
(which can be done in after-linking versionning code), or scenes' cycles
detection/check regarding background 'set' scenes.

Differential Revision: https://developer.blender.org/D6727

----------------------------------------
3 Paths Changed]]>
Sat, 01 Feb 2020 18:43:39 +0000 http://www.miikahweb.com/en/blender/git-logs/commit/9829a3c496743e0e6a557c9283f8c2cf2d9c1aa2Bastien Montagne