Lag in "File View" #69530
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
8 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#69530
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-10.0.16299 64 Bits
Graphics card: GeForce GTX 1080/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.15
Blender Version
Broken: version: 2.81 (sub 8), branch: master, commit date: 2019-09-05 02:56, hash:
6fc6f2504d
Short description of error
"File View" window noticeably lags when moved around. After some time it stops lagging and becomes smooth.
Exact steps for others to reproduce the error
Lagging is quite noticeable, as if something was loading to memory, but after some time it stops and becomes buttery smooth.
Edit: Tested on a weaker machine:
Operating system: Windows-10-10.0.18362 64 Bits
Graphics card: GeForce GTX 750 Ti/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 436.15
The performance drop is more noticeable and doesn't seem to get better over time.
Also, if you move main window around, while file menu is open you'll notice the same issue. If you minimize the file menu and then move main window around, it performs smooth.
Added subscriber: @MarcinTwarowski
#71933 was marked as duplicate of this issue
Added subscribers: @mont29, @mano-wii
I can't reproduce the problem.
System Information
Operating system: Windows-10-10.0.18941 64 Bits
Graphics card: Radeon (TM) RX 480 Graphics ATI Technologies Inc. 4.5.13559 Core Profile Context 26.20.12028.2
@mont29, do you have any idea what could be wrong?
To clarify, it's not a dramatic loss of performance, but it's noticeable in my opinion. Here's a video:
Blender_file_view.mp4
I noticed that animation underneath stops when you click on a file view window. I found it interesting.
Added subscriber: @Harley
Is this behavior the same if the window that is in front is Preferences, rather than File Browser? I think this is more to do with redrawing of the main window behind than with the window in front.
Added subscriber: @fclem
If that's happening using the Preference Window, that could be because of the OpenGL context switching between windows. That said, we did not change much in this regard compared to 2.79.
In case of 'preferences' I see a drop to 48 FPS, rather than 25 like with File window. So the impact seems to be there, although noticeably smaller. This is on a GTX 750 Ti by the way.
I just checked 2.79 and moving preferences window around is really bad. I never noticed that before. 2.81 is a lot smoother.
Hmmm... you are right, the slowdown is greater with File Browser.
However, (at least for me) the slowdown is almost nothing if I don't allow fsmenu_read_system() do any work - the reading of volumes and system folders. Not sure if we need to reload those on every draw.
Taking a closer look it gets a bit stranger...
space_file.c file_init() is called four times in succession each and every time the File Manager is opened. And is called periodically while the window is dragged around.
Almost all the slowdown I experience is when that function calls fsmenu_refresh_system_category(). So that function is clearing the volumes and system lists and recreating them, four times when the window opens and periodically while dragging around.
If that function is not called in file_init(), not only is the slowdown gone but everything still seems to work just fine and those lists are populated properly. In fact, I can just make "file_init" do nothing at all by adding a "return;" and everything works just fine. But faster.
Added subscriber: @JulianEisel
Hmm, don't see why there would be a need to call it that often. We should be able to early-exit in most cases and only refresh on directory change or if the user pressed the refresh button or so.
But this is really more @mont29's area :)
In the end this seems to come down to the fact that SpaceType.init() is misnamed. It is called all over, multiple times in a row, and all the time constantly while doing some things. So it cannot be used for one-time initialization stuff that you might expect to put in something called init.
Looking at Outliner, for example, that st->init is completely empty.
So the solution is to just find better places to put the only two two things it is doing: fsmenu_refresh_system_category(), which is recreating the entries in Volumes and System, and fsmenu_refresh_bookmarks_status(), which stops and restarts a job that validates the user bookmarks. Neither is something we want called four times in a row and then constantly while dragging.
A possible fix here:
https://developer.blender.org/D6112
Added subscriber: @MrBeep
This issue was referenced by
7af5604389
Changed status from 'Open' to: 'Resolved'
Added subscriber: @AcidRain0
Yes in my case preferences is even slower than file view when moving around or resizing
Any seperate window Like File browser, Preferences, Render View etc is affected by the same issue to varying degrees
Added subscriber: @ManuH
i can confirm the same and i have very powerful hardware (latest intel XE + RTX 6000 gpu)