antvis / G6

♾ A Graph Visualization Framework in JavaScript.
https://g6.antv.antgroup.com/
MIT License
11.02k stars 1.3k forks source link

图片节点在移动或旋转的过程中闪个不停,如何解决啊? #5694

Open destiny111aaa opened 4 months ago

destiny111aaa commented 4 months ago

Describe the bug

在定时器中,每隔几百毫秒就更新一次节点坐标或旋转角度,但图片节点会不停的闪烁。

Your Example Website or App

Chrome

Steps to Reproduce the Bug or Issue

8V XIQ~TUDZTTRE_DHRIJT

Expected behavior

希望能解决闪烁问题

Screenshots or Videos

https://github.com/antvis/G6/assets/150887390/47bbfa2f-a9a0-4c2a-9bf7-82671bc71d84

Platform

Windows Chrome

Additional context

No response

hanfengcan commented 4 months ago

试试看改用G6的动画代替定时器

zmcode commented 2 months ago

可以将图片缓存起来, 读取缓存的图片, 就不会有这个情况了

hh1412 commented 1 month ago

看不出来视频在闪