Fix: Delay image node preview loading to improve open animation #121147

Open
Guillermo Venegas wants to merge 2 commits from guishe/blender:delay-load-images into main

When changing the target branch, be careful to rebase the branch in your fork to match. See documentation.
Contributor

When opening multiple images as nodes in the compositor the
nodes preview can cause enough overhead that can break align animation.

This delays the node preview loading until the animation is done.

Main Patch
When opening multiple images as nodes in the compositor the nodes preview can cause enough overhead that can break align animation. This delays the node preview loading until the animation is done. | Main | Patch | | -------- | -------- | | <video src="/attachments/35358fdc-be95-455e-9d4a-2e40b857b812" title="2024-04-26 13-45-38.mp4" controls></video> | <video src="/attachments/ee88c6b3-bc20-4a96-b931-8ee97afee46f" title="2024-04-26 13-44-51.mp4" controls></video> |
Guillermo Venegas added 1 commit 2024-04-26 21:59:19 +02:00
Guillermo Venegas requested review from Hans Goudey 2024-04-26 21:59:35 +02:00
Iliya Katushenock added the
Module
VFX & Video
Interest
Compositing
labels 2024-04-26 22:02:10 +02:00
Iliya Katushenock added this to the Nodes & Physics project 2024-04-26 22:02:15 +02:00
Hans Goudey reviewed 2024-04-26 22:04:33 +02:00
Hans Goudey left a comment
Member

It's clearly a better user experience with this PR, but I'm not sure it's worth it honestly. It seems like a bit of a hack, since ideally the previews would be created in a non-blocking way. I'm not sure if that's something that's years away or if it's generally doable though.

It's clearly a better user experience with this PR, but I'm not sure it's worth it honestly. It seems like a bit of a hack, since ideally the previews would be created in a non-blocking way. I'm not sure if that's something that's years away or if it's generally doable though.
@ -726,6 +726,18 @@ static int node_add_file_modal(bContext *C, wmOperator *op, const wmEvent *event
/* End stack animation. */
if (duration > node_stack_anim_duration) {
WM_event_timer_remove(CTX_wm_manager(C), nullptr, data->anim_timer);
/* Enable back node previews. Only enabled by default to compositor nodes. */
Member

Grammar:

  • Enable back -> Reenable
  • to compositor nodes -> in compositor nodes
Grammar: - `Enable back` -> `Reenable` - `to compositor nodes` -> `in compositor nodes`
guishe marked this conversation as resolved
Guillermo Venegas added 1 commit 2024-04-26 22:11:28 +02:00
This pull request has changes conflicting with the target branch.
  • source/blender/editors/space_node/node_add.cc

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u delay-load-images:guishe-delay-load-images
git checkout guishe-delay-load-images
Sign in to join this conversation.
No reviewers
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset System
Interest
Audio
Interest
Automated Testing
Interest
Blender Asset Bundle
Interest
BlendFile
Interest
Collada
Interest
Compatibility
Interest
Compositing
Interest
Core
Interest
Cycles
Interest
Dependency Graph
Interest
Development Management
Interest
EEVEE
Interest
EEVEE & Viewport
Interest
Freestyle
Interest
Geometry Nodes
Interest
Grease Pencil
Interest
ID Management
Interest
Images & Movies
Interest
Import Export
Interest
Line Art
Interest
Masking
Interest
Metal
Interest
Modeling
Interest
Modifiers
Interest
Motion Tracking
Interest
Nodes & Physics
Interest
OpenGL
Interest
Overlay
Interest
Overrides
Interest
Performance
Interest
Physics
Interest
Pipeline, Assets & IO
Interest
Platforms, Builds & Tests
Interest
Python API
Interest
Render & Cycles
Interest
Render Pipeline
Interest
Sculpt, Paint & Texture
Interest
Text Editor
Interest
Translations
Interest
Triaging
Interest
Undo
Interest
USD
Interest
User Interface
Interest
UV Editing
Interest
VFX & Video
Interest
Video Sequencer
Interest
Virtual Reality
Interest
Vulkan
Interest
Wayland
Interest
Workbench
Interest: X11
Legacy
Asset Browser Project
Legacy
Blender 2.8 Project
Legacy
Milestone 1: Basic, Local Asset Browser
Legacy
OpenGL Error
Meta
Good First Issue
Meta
Papercut
Meta
Retrospective
Meta
Security
Module
Animation & Rigging
Module
Core
Module
Development Management
Module
EEVEE & Viewport
Module
Grease Pencil
Module
Modeling
Module
Nodes & Physics
Module
Pipeline, Assets & IO
Module
Platforms, Builds & Tests
Module
Python API
Module
Render & Cycles
Module
Sculpt, Paint & Texture
Module
Triaging
Module
User Interface
Module
VFX & Video
Platform
FreeBSD
Platform
Linux
Platform
macOS
Platform
Windows
Priority
High
Priority
Low
Priority
Normal
Priority
Unbreak Now!
Status
Archived
Status
Confirmed
Status
Duplicate
Status
Needs Info from Developers
Status
Needs Information from User
Status
Needs Triage
Status
Resolved
Type
Bug
Type
Design
Type
Known Issue
Type
Patch
Type
Report
Type
To Do
No Milestone
No Assignees
2 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: blender/blender#121147
No description provided.