Comments (8)
升级到 @antv/[email protected] 即可
from g.
确实,这里不适合使用 memoize,无法清空 cache
from g.
@xiaoiver 有临时的解决方案么?
from g.
@xiaoiver 有临时的解决方案么?
我想到的方案是保留 transform 中的一定精度,减少动画过程中产生的 transform string 数量。修复中预计今天发布。
from g.
@xiaoiver 好的,这样应该能缓解一下
不过还是看看根除下
from g.
https://codesandbox.io/p/sandbox/dan-huang-lottie-l6fz3t?file=%2Findex.js
另外我用这个例子测了一下:https://l6fz3t.csb.app/
间隔 5 分钟快照,OOM 似乎不是很明显?你也是用这个例子度量的嘛
from g.
其中部分会释放,但是我们的场景会播放一夜,就会很明显了
我们的业务代码,实际上是多个组件同时在播放动画,demo只是剥离了其中一个组件
from g.
其中部分会释放,但是我们的场景会播放一夜,就会很明显了 我们的业务代码,实际上是多个组件同时在播放动画,demo只是剥离了其中一个组件
了解我会在动画过程中禁用掉 memoize,否则会创建大量 CSSUnitValue 造成 OOM,大量插值也无法命中缓存:
from g.
Related Issues (20)
- [g] 动效使用cubic-bezier效果严重不符 HOT 1
- [g] Path 修改 transform 有误 HOT 6
- WebGPU demo报错 HOT 1
- [g]即使动画都停掉,requestAnimationFrame的调用不会停止 HOT 2
- [g-webgl] emoji 无法渲染
- 初始化加载的时候部分 Group 不展示 HOT 1
- [g] shadowRoot 事件监听无效 HOT 1
- [g] 运行动画后销毁画布 OOM
- [g] keyframe 中所有属性一致则不进行动画
- [g] Text 的 getComputedLength 返回 0
- i hope g-canvas can able to zoom in and out HOT 1
- (@antv/g) v6.0.2/@antv/(g-webgl)v2.0.1下绘制5000条path路径时比Line直线卡顿好几倍,甚至直接导致浏览器崩溃
- [g-webgl] 支持 WebXR HOT 1
- [g-webgl]画布相机镜头setZoom()设置到60以上时path和多边形边会变模糊失真严重 HOT 3
- [g-webgl]在相机镜头缩放到60下,Line/path/多边形边框lineWidth设置比1小时,宽度未变,但是元素颜色变透明了 HOT 3
- 使用 @antv/g-plugin-yoga,出现:Uncaught ReferenceError: _a is not defined at nbind.js:1146:62 HOT 1
- [g] supportsCSSTransform 导致 shadowRoot 下无法获取正确的偏移
- [g-svg] 存在冗余属性 marker-start 和 marker-end
- Update vulnerable packages HOT 2
- [g-svg] client2Viewport 返回 NaN
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from g.