Snap performance regression at high poll rate #93408

Closed
opened 2021-11-26 16:06:40 +01:00 by melak47 · 10 comments

System Information
Operating system: Windows-10-10.0.22000-SP0 64 Bits
Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 496.76

Blender Version
Broken: version: 3.0.0 Release Candidate, branch: master, commit date: 2021-11-25 17:24, hash: 2fb8c6805a (still broken in 3.1 7b5a6f452a).
Worked: 2.93.4 release

Short description of error
When using a mouse with a high poll rate, blender 3.0 can't seem to keep up with
mouse movements when snapping is on.
Even just 250Hz instead of 125Hz grinds the snapping to a halt in a trivial scene,
making it almost unusable unless you move the mouse veryslowly.

Exact steps for others to reproduce the error
Example scene created in blender with factory defaults, with two cubes and snapping
set to "face" and "center":
repro.blend

Using a mouse with a polling rate higher than 125Hz (many gaming mice go up to 1000Hz):

  1. Select the smaller cube,
  2. press g,
  3. hold ctrl for snapping,
  4. drag the smaller cube over the large cube.
    Observe the snapped location updating less and less often the faster you drag:
    pTazSmLAXx.mp4

Compare with blender 2.93 which doesn't seem to have a problem even at 1000Hz:
GskIXNAhU4.mp4

Workarounds

  • don't use a gaming mouse ( the extra buttons are nice for blender, though :| )
  • change the polling rate in the mouse's accompanying software if possible
**System Information** Operating system: Windows-10-10.0.22000-SP0 64 Bits Graphics card: NVIDIA GeForce RTX 3090/PCIe/SSE2 NVIDIA Corporation 4.5.0 NVIDIA 496.76 **Blender Version** Broken: version: 3.0.0 Release Candidate, branch: master, commit date: 2021-11-25 17:24, hash: `2fb8c6805a` (still broken in 3.1 7b5a6f452aa5). Worked: 2.93.4 release **Short description of error** When using a mouse with a high poll rate, blender 3.0 can't seem to keep up with mouse movements when snapping is on. Even just 250Hz instead of 125Hz grinds the snapping to a halt in a trivial scene, making it almost unusable unless you move the mouse *very*slowly. **Exact steps for others to reproduce the error** Example scene created in blender with factory defaults, with two cubes and snapping set to "face" and "center": [repro.blend](https://archive.blender.org/developer/F12289627/repro.blend) Using a mouse with a polling rate higher than 125Hz (many gaming mice go up to 1000Hz): 1. Select the smaller cube, 2. press g, 3. hold ctrl for snapping, 4. drag the smaller cube over the large cube. Observe the snapped location updating less and less often the faster you drag: [pTazSmLAXx.mp4](https://archive.blender.org/developer/F12289266/pTazSmLAXx.mp4) Compare with blender 2.93 which doesn't seem to have a problem even at 1000Hz: [GskIXNAhU4.mp4](https://archive.blender.org/developer/F12290122/GskIXNAhU4.mp4) **Workarounds** - don't use a gaming mouse ( the extra buttons are nice for blender, though :| ) - change the polling rate in the mouse's accompanying software if possible
Author

Added subscriber: @melak47

Added subscriber: @melak47

Added subscriber: @Wovchick

Added subscriber: @Wovchick

Added subscriber: @mano-wii

Added subscriber: @mano-wii

As far as I know, the snapping part of the transform code hasn't gone through changes that would justify this lag. This must be a collateral effect of changes in another area.

Does the problem only appear when you press Ctrl? What happens if snapping is already enabled in the scene? And what happens if you change the shortcut to a key other than Ctrl?

As far as I know, the snapping part of the transform code hasn't gone through changes that would justify this lag. This must be a collateral effect of changes in another area. Does the problem only appear when you press Ctrl? What happens if snapping is already enabled in the scene? And what happens if you change the shortcut to a key other than Ctrl?
Author

In #93408#1266235, @mano-wii wrote:
As far as I know, the snapping part of the transform code hasn't gone through changes that would justify this lag. This must be a collateral effect of changes in another area.

Does the problem only appear when you press Ctrl? What happens if snapping is already enabled in the scene?

If I enable snapping in the menu header, it behaves the same without holding control.
Using the transform gizmo tool with snapping on instead of pressing g, too.

And what happens if you change the shortcut to a key other than Ctrl?

> In #93408#1266235, @mano-wii wrote: > As far as I know, the snapping part of the transform code hasn't gone through changes that would justify this lag. This must be a collateral effect of changes in another area. > > Does the problem only appear when you press Ctrl? What happens if snapping is already enabled in the scene? If I enable snapping in the menu header, it behaves the same without holding control. Using the transform gizmo tool with snapping on instead of pressing `g`, too. > And what happens if you change the shortcut to a key other than Ctrl?

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

Changed status from 'Needs Triage' to: 'Confirmed'
Germano Cavalcante self-assigned this 2021-12-22 20:06:53 +01:00

I can confirm on a mouse with a polling rate of 500Hz
fba9cd019f is the first bad commit

I can confirm on a mouse with a polling rate of 500Hz fba9cd019f is the first bad commit

This issue was referenced by b2e15cb19d

This issue was referenced by b2e15cb19daba51d82191e446b705d11a0ec96fd

This issue was referenced by 586e2face6

This issue was referenced by 586e2face61c2c05b46ccf13889e2153faba0078

Changed status from 'Confirmed' to: 'Resolved'

Changed status from 'Confirmed' to: 'Resolved'
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
4 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#93408
No description provided.