Campbell Barton ideasman42
  • Australia
  • Joined on 2005-01-30
Campbell Barton commented on pull request blender/blender#104553 2023-02-16 12:59:23 +01:00
Use hash for Collection.gobject lookup, speedup object linking

Yep, expanded the comment to note this isn't simply a paranoid null check.

  /* The object may be set to NULL if the ID is being cleared from #collection_foreach_id,
   * generally `cob->ob`…
Campbell Barton commented on pull request blender/blender#104553 2023-02-16 12:55:18 +01:00
Use hash for Collection.gobject lookup, speedup object linking

With you on the first two issues, but don't think BLI_ghash_ensure_p helps here as the old pointer used as as a key needs to be removed, the new one needs to be inserted again.

Campbell Barton commented on pull request blender/blender#104755 2023-02-16 10:53:41 +01:00
Re-design of submodules used in blender.git

Sorry, misclicked.

  • After this change it's no longer possible to symlink release/ into {BUILD_DIR}/bin/{MAJOR_VER}.{MINOR_VER}/ to bypass the install target. While I don't see…
Campbell Barton commented on pull request blender/blender#104755 2023-02-16 06:27:09 +01:00
Re-design of submodules used in blender.git

Some notes:

  • After this change it's no longer possible to symlink release/ into {BUILD_DIR}/bin/{MAJOR_VER}.{MINOR_VER}/ to bypass make install. While I don't see this as an argument to…
Campbell Barton approved blender/blender#104755 2023-02-16 06:17:29 +01:00
Re-design of submodules used in blender.git

Generally seems fine, tests/python/bl_keymap_completeness.py:8 needs "release", "scripts" to be replaced with "scripts".

Campbell Barton commented on issue blender/blender#98928 2023-02-16 05:36:47 +01:00
Wayland: Unable to access window position, finding the window under the cursor doesn't work

@PratikPB2123 it's a known issue, I opened it to keep track of any problems related to the inability to know absolute positions of windows.

Campbell Barton commented on pull request blender/blender#104553 2023-02-16 05:07:05 +01:00
Use hash for Collection.gobject lookup, speedup object linking

All issues should be addressed now.

@blender-bot build

Campbell Barton pushed to pr-collection-object-hash at ideasman42/blender 2023-02-16 05:06:34 +01:00
ec811ae7b6 Address review (this commit will be squished)
Campbell Barton commented on pull request blender/blender#104553 2023-02-16 05:05:02 +01:00
Use hash for Collection.gobject lookup, speedup object linking

Agree, at the time of writing I was eager to flag up any issues early, but this adds too much overhead, even for debug builds, removing the BLI_assert.

Campbell Barton commented on pull request blender/blender#104553 2023-02-16 05:01:39 +01:00
Use hash for Collection.gobject lookup, speedup object linking

Yep, good idea.

Campbell Barton commented on pull request blender/blender#104553 2023-02-16 04:54:26 +01:00
Use hash for Collection.gobject lookup, speedup object linking

It's awkward either way, Sergey requested to move this into a utility function, while it's nice to split out in some ways - it's rather spesific functionality which is only used in one place,…

Campbell Barton commented on pull request blender/blender#104553 2023-02-16 04:41:13 +01:00
Use hash for Collection.gobject lookup, speedup object linking

Makes sense, moved into collection_gobject_hash_ensure.

Campbell Barton pushed to pr-collection-object-hash at ideasman42/blender 2023-02-16 04:40:05 +01:00
6432f129a9 Address review (this commit will be squished)
5e67a75725 Use hash for Collection.gobject lookup, speedup object linking
ab63fe9eab Cleanup: format
a2551f23ad Cleanup: document & improve naming for Wayland's pending window actions
f178e3f849 Merge branch 'blender-v3.5-release'
Compare 189 commits »
Campbell Barton commented on pull request blender/blender#104553 2023-02-16 04:19:04 +01:00
Use hash for Collection.gobject lookup, speedup object linking

Following up on discussion on D17016, where I noted.

The hypothetical worst-case this would avoid is building and throwing away the object hash on frame-change (for e.g.),

Sergey…

Campbell Barton pushed to pr-scene-collection-skip-on-cow at ideasman42/blender 2023-02-16 04:01:58 +01:00
3e4349f036 Fix #104798: Slower frame-change with many objects in the scenes collection
Campbell Barton pushed to main at infrastructure/blender-bot 2023-02-16 03:20:19 +01:00
3828dc808d README: correct own typo
Campbell Barton pushed to pr-scene-collection-skip-on-cow at ideasman42/blender 2023-02-16 03:14:26 +01:00
23857dc29c Experimental: follow node-tree behavior for master collection
0c18c6d64f Revert "Fix #104798: Slower frame-change with many objects in the scenes collection"
Compare 2 commits »