M1 Solid Shadow slows down #93073

Closed
opened 2021-11-14 16:13:53 +01:00 by Alex · 25 comments

System Information
Operating system: macOS-11.2.3-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Apple 4.1 Metal - 71.0.7

Blender Version
Broken: version: 2.93.6 Release Candidate, branch: master, commit date: 2021-11-10 09:31, hash: fa99d3e53b

Short description of error
Scene slows down a lot in Solid mode with shadow on
m1_solid_shadow.blend

Exact steps for others to reproduce the error
Add 200+ simple objects to the scene. In Solid mode, turn on Shadow.

**System Information** Operating system: macOS-11.2.3-arm64-arm-64bit 64 Bits Graphics card: Apple M1 Apple 4.1 Metal - 71.0.7 **Blender Version** Broken: version: 2.93.6 Release Candidate, branch: master, commit date: 2021-11-10 09:31, hash: `fa99d3e53b` **Short description of error** Scene slows down a lot in Solid mode with shadow on [m1_solid_shadow.blend](https://archive.blender.org/developer/F11803607/m1_solid_shadow.blend) **Exact steps for others to reproduce the error** Add 200+ simple objects to the scene. In Solid mode, turn on Shadow.
Author

Added subscriber: @makseemoff-4

Added subscriber: @makseemoff-4

#99988 was marked as duplicate of this issue

#99988 was marked as duplicate of this issue
Author

This comment was removed by @makseemoff-4

*This comment was removed by @makseemoff-4*
Member

Added subscriber: @HooglyBoogly

Added subscriber: @HooglyBoogly
Member

Changed status from 'Needs Triage' to: 'Needs User Info'

Changed status from 'Needs Triage' to: 'Needs User Info'
Member

Thanks for the report. Is this a regression? Turning shadows on is expected to slow down the viewport display, since it's doing much more.
If it isn't a regression, then we generally wouldn't track requests for improved performance on the bug tracker.

Thanks for the report. Is this a regression? Turning shadows on is expected to slow down the viewport display, since it's doing much more. If it isn't a regression, then we generally wouldn't track requests for improved performance on the bug tracker.
Author

Yes, this is a regression. I checked it on my old MacBook 13 2015 and this project, with shadow enabled in Solid mode, does not slow down. And on the new M1 processor, the scene starts to slow down to 1 fps and less. Any other render/shading on the M1 is faster than on the Intel Mac. As far as I understand, the issue is only with Apple silicon processors.

Checked and works well on:
MacBook 13 2015
Operating system: macOS-10.15.7-x86_64-i386-64bit 64 Bits
Graphics card: Intel(R) Iris(TM) Graphics 6100 Intel Inc. 4.1 INTEL-14.7.8

Blender Version
2.93.6 Release Candidate, branch: master, commit date: 2021-11-10 09:31, hash: fa99d3e53b

Yes, this is a regression. I checked it on my old **MacBook 13 2015** and this project, with shadow enabled in Solid mode, does not slow down. And on the new M1 processor, the scene starts to slow down to 1 fps and less. Any other render/shading on the M1 is faster than on the **Intel Mac**. As far as I understand, the issue is only with **Apple silicon** processors. **Checked and works well on:** MacBook 13 2015 Operating system: macOS-10.15.7-x86_64-i386-64bit 64 Bits Graphics card: Intel(R) Iris(TM) Graphics 6100 Intel Inc. 4.1 INTEL-14.7.8 **Blender Version** 2.93.6 Release Candidate, branch: master, commit date: 2021-11-10 09:31, hash: fa99d3e53b

Added subscriber: @blenderrocket

Added subscriber: @blenderrocket

I can confirm this, performance is much slower than expected, much worse than material preview and rendered mode.

Operating system: macOS-12.0.1-arm64-arm-64bit 64 Bits
Graphics card: Apple M1 Max Apple 4.1 Metal - 76.1

Blender Version
Broken: version: 3.0.0 Beta, branch: master, commit date: 2021-11-11 18:49, hash: bd734cc441

I can confirm this, performance is much slower than expected, much worse than material preview and rendered mode. Operating system: macOS-12.0.1-arm64-arm-64bit 64 Bits Graphics card: Apple M1 Max Apple 4.1 Metal - 76.1 **Blender Version** Broken: version: 3.0.0 Beta, branch: master, commit date: 2021-11-11 18:49, hash: `bd734cc441`
Member

Changed status from 'Needs User Info' to: 'Needs Triage'

Changed status from 'Needs User Info' to: 'Needs Triage'
Member

Okay, I can't confirm this without Apple hardware, I'll leave that to someone else. Thanks for the details though.

Okay, I can't confirm this without Apple hardware, I'll leave that to someone else. Thanks for the details though.

Added subscriber: @mano-wii

Added subscriber: @mano-wii

Changed status from 'Needs Triage' to: 'Confirmed'

Changed status from 'Needs Triage' to: 'Confirmed'

I confirm an abnormal lag, triggered by the shadows.
Tested in previous versions, the problem also appears in 2.92. So it's not a regression.
It looks like something that only happens on macs with ARM processors.

I confirm an abnormal lag, triggered by the shadows. Tested in previous versions, the problem also appears in 2.92. So it's not a regression. It looks like something that only happens on macs with ARM processors.

Added subscriber: @2046411367

Added subscriber: @2046411367

Added subscriber: @HenrisKas

Added subscriber: @HenrisKas

Second that - Shadows are killing performance in solid view (on M1) - it's more responsive in eevee rendered view than solid with shadows on. (3.1.0)

Second that - Shadows are killing performance in solid view (on M1) - it's more responsive in eevee rendered view than solid with shadows on. (3.1.0)
Member

Added subscriber: @Jeroen-Bakker

Added subscriber: @Jeroen-Bakker
Member

Changed status from 'Confirmed' to: 'Archived'

Changed status from 'Confirmed' to: 'Archived'
Member

The GPU on the M1 is optimized for small shaders and pipelines. After stress testing it is easy to detect limitations of the hardware.
The Solid shadows are expensive, but optimizing it (implement something different) should not be considered a bug.
There are ideas to replace it in the near future, but has no date yet.

Will close this report as it is a limitation inside the hardware.

The GPU on the M1 is optimized for small shaders and pipelines. After stress testing it is easy to detect limitations of the hardware. The Solid shadows are expensive, but optimizing it (implement something different) should not be considered a bug. There are ideas to replace it in the near future, but has no date yet. Will close this report as it is a limitation inside the hardware.
Member

Changed status from 'Archived' to: 'Confirmed'

Changed status from 'Archived' to: 'Confirmed'
Member

Added subscribers: @Louis-Lou, @PratikPB2123

Added subscribers: @Louis-Lou, @PratikPB2123

Seems to be fixed with the metal backend.

Seems to be fixed with the metal backend.
Member

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
Hans Goudey self-assigned this 2022-12-22 16:04:58 +01:00
Member

Thanks for testing @wouterstomp. I'll close this issue because of that, and because I've seen plans to rework the shadow implementation for the next version of the workbench engine.

EDIT: Oops, didn't see this was already archived. Either way, "Resolved" seems fine now.

Thanks for testing @wouterstomp. I'll close this issue because of that, and because I've seen plans to rework the shadow implementation for the next version of the workbench engine. EDIT: Oops, didn't see this was already archived. Either way, "Resolved" seems fine now.
Sign in to join this conversation.
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
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#93073
No description provided.