Regression: lag from camera view when using mouse scroll #103112
Labels
No Label
Interest
Alembic
Interest
Animation & Rigging
Interest
Asset Browser
Interest
Asset Browser Project Overview
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
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 project
No Assignees
9 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#103112
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
System Information
Operating system: Windows 10
Graphics card: Nvidia Titan XP
Blender Version
Broken: 3.3.1-3.5
Worked: 3.2
Caused by
befe38fe1d
Short description of error
Massive lag in camera view mode with objects about 20 mil triangles when using mouse scroll with view locked to camera even in Solid preview mode. When using Ctrl Alt mouse move seems no lag, scroll works as usual. Only scrolling is not working properly, rotation works nomally.
In this video: Blender 3.3.1, two separate cubes subdivided to level 10, first trying to scroll with mouse wheel - it lags, then using Ctrl Alt Mouse - no lag, then again with mousewheel - lag. No matter if GPU subdivision is on or off.
Exact steps for others to reproduce the error
Blender Mouse scroll issue.blend
Lag when in camera view Blender 332.mp4
Added subscriber: @Vir
Blender 3.3.2 lag from camera view when using mouse scrollto Blender 3.3.1 and 3.4 lag from camera view when using mouse scrollBlender 3.3.1 and 3.4 lag from camera view when using mouse scrollto Blender 3.3.1-3.2.2 and 3.4 lag from camera view when using mouse scrollAdded subscriber: @Raimund58
Please upload a simple .blend for the developers to reproduce your exact case.
Added subscriber: @EAW
Please only assign tasks to yourself if you plan on fixing the issue.
Blender 3.3.1-3.2.2 and 3.4 lag from camera view when using mouse scrollto lag from camera view when using mouse scrollAdded subscriber: @mano-wii
Changed status from 'Needs Triage' to: 'Needs User Info'
I can't replicate the problem.
Maybe what you are facing is not a lag. Maybe it's the zoom jumps that are too far.
Try enabling
Auto Depth
in preferences:https://docs.blender.org/manual/en/latest/editors/preferences/navigation.html
Auto-Depth is always enabled, same in this particular case.
I made a clean install without any addons - the described lag is still there. The object is 5.6 mil vertices - not the biggest.
I tried the cube - Subdivision surf. modificator level 11 - when not applied lag is much less, when applied - great lag. The GPU subdivision for viewport does not matter, on or off - same.
Blender Zoom lag 2.mp4
Changed status from 'Needs User Info' to: 'Needs Triage'
I can reproduce the issue with the provided .blend.
Smooth experience with Ctrl zoom.
Win 11, GTX 1080, Blender 3.4
Added subscriber: @PratikPB2123
Changed status from 'Needs Triage' to: 'Confirmed'
I can confirm too. Disabling global undo solves the problem.
Perhaps caused by
befe38fe1d
lag from camera view when using mouse scrollto Regression: lag from camera view when using mouse scrollAdded subscriber: @ideasman42
@ideasman42 any idea how to avoid this lag?
Or maybe we can just remove the undo push for zoom operation
I'll raise the priority as per triaging policy
Added subscriber: @Wovchick
Thanks! Now zoom is smoothie
@PratikPB2123 short term could be not to use undo pushes for mouse-wheel navigation. (not ideal but at least avoids the problem).
Further there are a few possible solutions, all are much more involved though:
Improve Undo Performance
Instead of trying to avoid performing undo pushes on small changes, we could check on ways that moving a single object can perform an undo push much faster then it is currently.
Modal Operator
We could investigate having mouse-wheel / NDOF navigation start a modal operator, that exists and adds an undo push when any event that would run another operator is passed in.
Undo Grouping
We could improve grouped undo support, where the actual undo push (which can be slow), is deferred so the performance cost would only occur on the last mouse wheel step.
In general, improving the performance of undo pushes on small operations would be ideal in this case.
Although there could still be a case for modal operators.
Currently NDOF event's don't perform an undo push because unlike mouse wheel events - they are closer to cursor motion, where many events may be handled a second. So performing undo pushes for every event (even with optimized undo) isn't practical.
So for this case, it could still be worth investigating using a model operator that can handle undoing when other actions run.
Added subscriber: @Jeroen-Bakker
Lowering the priority as it is mentioned in the original change (VIEW3D_OT_zoom will be part of the undo stack). Campbell has provided some areas where to improve, but is not something that can be considered as a bug-fix, more normal development and should be picked up as a project.
It's been a year since the promise for this issue to be fixed has been made but blender 4.0 still suffer with Global undo + Camera to view BOTH ENABLED on big scenes
@Vir @Raimund58 @EAW @mano-wii @PratikPB2123 @Wovchick @Jeroen-Bakker @ideasman42
Here is the link Performance comparison between BLENDER 3.2 with GLOBAL UNDO ENABLED + CAMERA TO VIEW and BLENDER 3.3 Same settings. Why this issue has not been resolved two years after the report?
https://imgur.com/a/9XobZAo
I reported this bug again but how hard it is to bring back the same performance as blender had in 3.2
#118877
this issue started occurring after blender-3.3.0-alpha+master-D15274.ac735c928db2
@PratikPB2123 This issue started occurring since Blender 3.3 (I have blender-3.3.0-alpha+master-D15274.ac735c928db2-windows.amd64-release that was working fine but it gives me an error after reinstalling the windows the application has failed to start side-by-side configuration ) so is there timeframe when this issue might get resolved?
@mxch Please try a more recent Blender version. From Blender 3.6 and up I can no longer reproduce the lag.
This issue still occurs but with big scenes, even if everything is disabled in viewport . Camera to View + Global Undo with big scenes causes delay lag and eventually freezing of the system
Okay, but with the provided test .blend I can no longer reproduce it.
How To Reproduce Issue (it only occurs with large files now (1-2 GB and more)with blender 3.3 and later - I tested with blender 4.0)
1.open Blender Mouse scroll issue.blend file attached to this issue thread.
2.create UV sphere (shift+a > mesh )
3. go to edit mode and subdivide the mesh couple of times
4. add Array Modifier to the sphere 50 times and apply the modifier so file size grows.
5.copy paste uv sphare row after applying array modifier five-ten times, file reaches to 3GB and even if you disable everything in viewport camera still lags when Global Undo and Camera to view is activated especially panning multiple times by pressing middle mouse button
We mentioned that this could not be categorized as a bug fix, but requires a project to fix it. A project requires resources, priority and time. The state 'Known Issue' reflects the correct state for issues.
So there won't be any fix even for Blender 4.2 LTS?
I have no idea why it's so hard to fix this issue everything worked fine in blender 3.2 ,
even blender-3.3.0-alpha+master-D15274.ac735c928db2
@mxch could you check to see if this is still a problem in a recent daily build?
0e8e219d71
may have improved performance enough that this issue can be closed.I can't tell if it makes a user visible improvement as I can't redo the bug on my system with 4.0 or a recent daily build.
@ideasman42 You mean daily build Blender 4.1.0 Beta -
d196046a3a
- SHA - 07 Mar 03:23The problem is still present in it, only way files greater than 1GB not lagging with camera to view activated is disabling GLOBAL UNDO
I don't know what changed since the release of Blender 3.2 but Blender 3.3 can't handle big files (or lag is way more noticeable in bigger files ) but I have the copy of blender-3.3.0-alpha+master-D15274.ac735c928db2-windows.amd64-release that didn't suffer with this issue, it's not archived in repository so if you need to look at it I can send
Edit: are you sure daily build has been released? I couldn't find any builds with the tittle "0e8e219d71"
@mxch please check 4.2 alpha, 4.1 doesn't include this change.
Blender 4.2.0-Alpha-d31ff88af7ee-SHA-06-Mar has significantly improved performance of blender VIEWPORT while GLOBAL UNDO and CAMERA TO VIEW are both enabled for Big Projects, I would ask this issue not to be closed as resolved since there's still tiny lag while dragging using shift + middle mouse wheel , compared to dragging while Global Undo is disabled
Years and months has passed will this issue be resolved for Blener 4.2 @ideasman42 @mano-wii @Jeroen-Bakker @Raimund58