8000 [Bug]: Performance when deselecting elements on medium sized graph with bubble-set and avoidMembers · Issue #7195 · antvis/G6 · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
[Bug]: Performance when deselecting elements on medium sized graph with bubble-set and avoidMembers #7195
Open
@Mnikley

Description

@Mnikley

Describe the bug / 问题描述

On a medium sized graph (500 nodes, 1k edges), when having an active bubble group with members & avoidMembers, the graph becomes very inresponsive and barely usable, especially when deselecting nodes.

On small graphs, this is not noticable. Larger graphs (1k nodes, 6k edges) are unbearable. The only solution is to set avoidMembers to an empty array (row 75 in the sandbox JS code, avoidMembers: []).

System:
  Kernel: 6.14.9-300.fc42.x86_64 arch: x86_64 bits: 64
  Desktop: KDE Plasma v: 6.3.5 Distro: Fedora Linux 42 (KDE Plasma Desktop
    Edition)

CPU:
  Info: 12-core model: AMD Ryzen AI 9 HX 370 w/ Radeon 890M bits: 64
    type: MT MCP cache: L2: 12 MiB

Graphics:
  Device-1: Advanced Micro Devices [AMD/ATI] Strix [Radeon 880M / 890M]
    driver: amdgpu v: kernel
  Display: wayland server: Xwayland v: 24.1.6 compositor: kwin_wayland
    driver: gpu: amdgpu resolution: 1: 3440x1440~165Hz 2: 2880x1920~120Hz
  API: EGL v: 1.5 drivers: kms_swrast,radeonsi,swrast
    platforms: gbm,wayland,x11,surfaceless,device
  API: OpenGL v: 4.6 compat-v: 4.5 vendor: amd mesa v: 25.0.6 renderer: AMD
    Radeon Graphics (radeonsi gfx1150 LLVM 20.1.3 DRM 3.61
    6.14.9-300.fc42.x86_64)
  API: Vulkan v: 1.4.313 drivers: radv,llvmpipe surfaces: N/A

tested on:

Mozilla Firefox 139.0
Chromium 137.0.7151.55 Fedora Project

Reproduction link / 复现链接

https://jsfiddle.net/xosuk9pz

Steps to Reproduce the Bug or Issue / 重现步骤

Steps to reproduce:

  1. Load the sandbox
  2. Click on a node (fast)
  3. Deselect the node by clicking somewhere on the canvas (takes 2min+)

Version / 版本

🆕 5.x

OS / 操作系统

  • macOS
  • Windows
  • Linux
  • Others / 其他

Browser / 浏览器

  • Chrome
  • Edge
  • Firefox
  • Safari (Limited support / 有限支持)
  • IE (Nonsupport / 不支持)
  • Others / 其他

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0