File Compression setting does not apply to autosaves #115697
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
4 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: blender/blender#115697
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.19045-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.6.0 NVIDIA 537.34
Blender Version
Broken: -
Worked: -
Short description of error
The
Preferences/Save & Load/Compress Files
setting has no effect on auto saves.With huge files this causes significantly longer saving times and unnecessary strain on SSDs.
Exact steps for others to reproduce the error
Compare the size of your autosave against your normal save.
I crated a suggestion a year ago https://blender.community/c/rightclickselect/ql83/?sorting=hot
I am aware this can easily be seen as a feature request, but it really is more of an oversight isn't it?
I tried to read trough the code and it seems the autosave just rolls with a default parameters
9c0bffcc89/source/blender/windowmanager/intern/wm_files.cc (L2115)
while the usersave uses user parameters
9c0bffcc89/source/blender/blenkernel/intern/blendfile.cc (L1237)
It also seems the undo system may not use compression, but I am absolutely not sure.
Hi, thanks for the report. I think it make sense to allow compressing auto-save files
Going through current code, it seems use of
compression
userpref is not possible for auto-save files.Though this can still be achieved if I don't use memfile step for writing the file. I have a fix which is likely illegal:
This also applies to quit.blend, often causing gigabytes more writing even when you had already saved moments ago
@mont29 , would you consider this a bug?
Would consider that as a known issue for now, enabling compression on autosave can also have bad effects on performances (depending on the situation)...
ZSTD does have an adaptive compression mode, where the compression level is adjusted to saturate disk usage, theoretically meaning no slower than uncompressed or even faster if the compression ratio is high. It might be worth looking into for autosaves or even normal saving too