Dual monitor issue #106397

Open
opened 2023-03-31 18:31:36 +02:00 by Nigel-Cartwright · 7 comments

System Information
Operating system: macOS-13.2.1-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M2 Pro 1.2

Blender Version
Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: 1be25cfff18b
Worked: (newest version of Blender that worked as expected)

Short description of error
Using a new Mac Mini Pro with single monitor (Apple Studio Display), Blender 3.5 is very fast.
Add in a second Studio display and the interface becomes 'clunky', contextual menus take sometimes 2 or 3 seconds to appear, playback is jerky.

Tried various settings in preferences but no change. Unplugging the second monitor returns good performance...

Uodate:
Setting 'GPU Backend' to 'OpenGL' improves things a little...

Update-2:
Version 3.4.1 seems to have similar issues

Update-3
I seem to have solved some of the issue..
The Apple Studio Displays have 4 input ports, one Thunderbolt port and 3 USB-C ports.
The external display was plugged into one of the USB-C ports.
Swapping input to the Thunbderbolt port seems to speed things up.
Still a lot of lag on contextual menu pop-up,and selection box drag out.

Update-4
So it tried reducing the Blender window to 1/4 screen, Blender becomes smooth again.

I then methodically made it bigger and bigger until the latency suddenly reappears.

Provided I leave around 15mm of gap around the edge of the Blender window with the desktop peeking around the edge, Blender stays very smooth.

Pull it a bit further out and the latency returns.

It can’t cope with absolute full screen, knock it back 5% smaller and it’s fine.

Weird!!

Exact steps for others to reproduce the error
[Please describe the exact steps needed to reproduce the issue]
[Based on the default startup or an attached .blend file (as simple as possible)]

**System Information** Operating system: macOS-13.2.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M2 Pro 1.2 **Blender Version** Broken: version: 3.5.0, branch: blender-v3.5-release, commit date: 2023-03-29 02:56, hash: `1be25cfff18b` Worked: (newest version of Blender that worked as expected) **Short description of error** Using a new Mac Mini Pro with single monitor (Apple Studio Display), Blender 3.5 is very fast. Add in a second Studio display and the interface becomes 'clunky', contextual menus take sometimes 2 or 3 seconds to appear, playback is jerky. Tried various settings in preferences but no change. Unplugging the second monitor returns good performance... Uodate: Setting 'GPU Backend' to 'OpenGL' improves things a little... Update-2: Version 3.4.1 seems to have similar issues Update-3 I seem to have solved some of the issue.. The Apple Studio Displays have 4 input ports, one Thunderbolt port and 3 USB-C ports. The external display was plugged into one of the USB-C ports. Swapping input to the Thunbderbolt port seems to speed things up. Still a lot of lag on contextual menu pop-up,and selection box drag out. Update-4 So it tried reducing the Blender window to 1/4 screen, Blender becomes smooth again. I then methodically made it bigger and bigger until the latency suddenly reappears. Provided I leave around 15mm of gap around the edge of the Blender window with the desktop peeking around the edge, Blender stays very smooth. Pull it a bit further out and the latency returns. It can’t cope with absolute full screen, knock it back 5% smaller and it’s fine. Weird!! **Exact steps for others to reproduce the error** [Please describe the exact steps needed to reproduce the issue] [Based on the default startup or an attached .blend file (as simple as possible)]
Nigel-Cartwright added the
Priority
Normal
Type
Report
Status
Needs Triage
labels 2023-03-31 18:31:36 +02:00
Richard Antalik added the
Platform
macOS
label 2023-03-31 19:54:42 +02:00
YimingWu added the
Module
User Interface
Interest
Metal
labels 2023-04-01 09:25:07 +02:00

I've partially been able to confirm this (though not exactly the same setup nor a very significant drop), so will investigate the issue further. It is likely a problem with the presentation engine synchronisation which possibly changes when a second monitor is attached, causing period CPU stalls on the application side.

Will update here with more information soon.

I've partially been able to confirm this (though not exactly the same setup nor a very significant drop), so will investigate the issue further. It is likely a problem with the presentation engine synchronisation which possibly changes when a second monitor is attached, causing period CPU stalls on the application side. Will update here with more information soon.
Iliya Katushenock added
Interest
User Interface
and removed
Module
User Interface
labels 2023-04-16 16:47:07 +02:00

Yes, dual Apple Studio Displays here, unplugging the second monitor solves the issue.
THanks for the update...

Yes, dual Apple Studio Displays here, unplugging the second monitor solves the issue. THanks for the update...

@Nigel-Cartwright Thanks for the information! As a quick question, if you happen to have a spare moment, would you be able to give the latest 3.6.0 daily alpha a try? https://builder.blender.org/download/daily/

There are a few synchronisation changes which alter possible stalls within the window presentation system. It wasn't directly addressing this issue, but curious if there was any improvement as a result?

Though we will still investigate this directly and feed back, all of this information is helpful!

@Nigel-Cartwright Thanks for the information! As a quick question, if you happen to have a spare moment, would you be able to give the latest 3.6.0 daily alpha a try? https://builder.blender.org/download/daily/ There are a few synchronisation changes which alter possible stalls within the window presentation system. It wasn't directly addressing this issue, but curious if there was any improvement as a result? Though we will still investigate this directly and feed back, all of this information is helpful!

Hi

Just tried 3.6 Alpha, I'm afraid it exhibits identical problems.
Shrinking the window stops the latency, as in 3.5...

Sorry...!

Hi Just tried 3.6 Alpha, I'm afraid it exhibits identical problems. Shrinking the window stops the latency, as in 3.5... Sorry...!

No worries, thank you for confirming, that helps rule out some causes

No worries, thank you for confirming, that helps rule out some causes

Hi @Nigel-Cartwright if you happen to have a moment, capturing diagnostic traces of this issue would be greatly useful.

Could you please try opening a command prompt and running either:

sudo ktrace artrace -t 2

or

sudo artrace -t 2

Both while the issue is occurring with two monitors connected, and while the issue is not occurring with the single monitor. This will help us understand what specific part of your setup is causing the problem, and will give us insight into how we may be able to address it.

If you are able to as well, another trace showing while the window is shrunk down would also give us information about what changes on the system when the window size changes.

Thanks!

Hi @Nigel-Cartwright if you happen to have a moment, capturing diagnostic traces of this issue would be greatly useful. Could you please try opening a command prompt and running either: ``` sudo ktrace artrace -t 2 ``` or ``` sudo artrace -t 2 ``` Both while the issue is occurring with two monitors connected, and while the issue is not occurring with the single monitor. This will help us understand what specific part of your setup is causing the problem, and will give us insight into how we may be able to address it. If you are able to as well, another trace showing while the window is shrunk down would also give us information about what changes on the system when the window size changes. Thanks!

Hi

Just tried that, where does it dump the log?
It's only 2 seconds...?
It's big...!

Last login: Thu Apr 20 13:38:56 on ttys000

The default interactive shell is now zsh.
To update your account to use zsh, please run chsh -s /bin/zsh.
For more details, please visit https://support.apple.com/kb/HT208050.
NigesMainiM2Pro:~ nige$ sudo ktrace artrace -t 2
Password:
Running for 2s, trace type (full), graphics, syscall-sampling, fault-sampling, log-content, sampling every 1.000ms to output file trace002.ktrace
Trace stopping...
Post-processing file.
Adding 9 seconds of os_log data
Trace completed.
Checking for lost events.
File is 299.17 MB.
Recorded 4710635 events over 2.12995 seconds (2211615 events/sec)
NigesMainiM2Pro:~ nige$

Hi Just tried that, where does it dump the log? It's only 2 seconds...? It's big...! Last login: Thu Apr 20 13:38:56 on ttys000 The default interactive shell is now zsh. To update your account to use zsh, please run `chsh -s /bin/zsh`. For more details, please visit https://support.apple.com/kb/HT208050. NigesMainiM2Pro:~ nige$ sudo ktrace artrace -t 2 Password: Running for 2s, trace type (full), graphics, syscall-sampling, fault-sampling, log-content, sampling every 1.000ms to output file trace002.ktrace Trace stopping... Post-processing file. Adding 9 seconds of os_log data Trace completed. Checking for lost events. File is 299.17 MB. Recorded 4710635 events over 2.12995 seconds (2211615 events/sec) NigesMainiM2Pro:~ nige$
Brecht Van Lommel added the
Module
Platforms, Builds & Tests
label 2024-02-07 18:11:58 +01:00
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
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#106397
No description provided.