Text Editor scrolling lag, macOS Metal backend #110898

Open
opened 2023-08-07 18:05:26 +02:00 by Yevgeny Makarov · 7 comments

System Information
Operating system: macOS-12.6.3-x86_64-i386-64bit 64 Bits
Graphics card: Metal API AMD Radeon Pro 455 1.2

Blender Version
Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-07-30 15:51, hash: a14c747fe8e4
Worked: OpenGL

Short description of error
There is a lag when scrolling in Text Editor. (macOS, Metal backend)

Exact steps for others to reproduce the error

  • In text editor, open a big text (like gizmo_custom_geometry.py from Templates)
  • Try using MMB-drag or try scrolling on the trackpad

MMB-drag: you will see some page lag from the cursor, while with OpenGL the page moves with the cursor.

Trackpad: if you scroll, stop and hold; the text will continue scrolling after you stop your fingers. When using the OpenGL backend it stopped immediately.

**System Information** Operating system: macOS-12.6.3-x86_64-i386-64bit 64 Bits Graphics card: Metal API AMD Radeon Pro 455 1.2 **Blender Version** Broken: version: 4.0.0 Alpha, branch: main, commit date: 2023-07-30 15:51, hash: `a14c747fe8e4` Worked: OpenGL **Short description of error** There is a lag when scrolling in Text Editor. (macOS, Metal backend) **Exact steps for others to reproduce the error** - In text editor, open a big text (like `gizmo_custom_geometry.py` from Templates) - Try using MMB-drag or try scrolling on the trackpad MMB-drag: you will see some page lag from the cursor, while with OpenGL the page moves with the cursor. Trackpad: if you scroll, stop and hold; the text will continue scrolling after you stop your fingers. When using the OpenGL backend it stopped immediately.
Yevgeny Makarov added the
Type
Report
Priority
Normal
Status
Needs Triage
labels 2023-08-07 18:05:26 +02:00
Member

I'm not sure how this is affected by the UI drawing back-end. Does this also change how the event is handled? 🤔

I'm not sure how this is affected by the UI drawing back-end. Does this also change how the event is handled? 🤔
YimingWu added the
Platform
macOS
label 2023-08-08 04:24:02 +02:00
Member

Maybe screen coordinate you get from low level functions could affect the result with different backend? Not sure though :)
@mano-wii can you verify the problem with Metal backend?

Maybe screen coordinate you get from low level functions could affect the result with different backend? Not sure though :) @mano-wii can you verify the problem with Metal backend?

I tested it on different versions with Metal and with OpenGL but I couldn't notice any difference on the Mac M1.

It should only be an issue on Macs with AMD GPUs.

Operating system: macOS-13.3.1-arm64-arm-64bit 64 Bits
Graphics card: Metal API Apple M1 1.2
I tested it on different versions with Metal and with OpenGL but I couldn't notice any difference on the Mac M1. It should only be an issue on Macs with AMD GPUs. ``` Operating system: macOS-13.3.1-arm64-arm-64bit 64 Bits Graphics card: Metal API Apple M1 1.2 ```
Member

It should only be an issue on Macs with AMD GPUs.

@iss , can you replicate?

> It should only be an issue on Macs with AMD GPUs. @iss , can you replicate?

I think I can reproduce with Magic Mouse. There is lag, but only when scrolling from top down.

I think I can reproduce with Magic Mouse. There is lag, but only when scrolling from top down.
Richard Antalik added
Module
User Interface
Status
Confirmed
and removed
Status
Needs Triage
labels 2023-08-15 05:25:17 +02:00
Member

Not sure if this patch will help? #110927

Not sure if this patch will help? https://projects.blender.org/blender/blender/pulls/110927
Author
Member

Not sure if this patch will help? #110927

No, the current bug is present with the MMB-drag as well. I've added a video to the description.

> Not sure if this patch will help? https://projects.blender.org/blender/blender/pulls/110927 No, the current bug is present with the MMB-drag as well. I've added a video to the description.
Brecht Van Lommel added
Module
Platforms, Builds & Tests
and removed
Module
User Interface
labels 2024-02-07 18:09:57 +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
5 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#110898
No description provided.