Comments (2)
顶点太多肯定会卡的,因为创建Path的时候要动态计算轮廓和做三角剖分,这个在框架设计上没法避免。如果Path形状是固定的,可以先离线算好mesh,手工创建mesh2d对象,自定义一个类似Path的类,把离线算好的mesh2d对象添加上去。如果Path形状是动态计算的,那就没有特别好的办法。
from spritejs.
顶点太多肯定会卡的,因为创建Path的时候要动态计算轮廓和做三角剖分,这个在框架设计上没法避免。如果Path形状是固定的,可以先离线算好mesh,手工创建mesh2d对象,自定义一个类似Path的类,把离线算好的mesh2d对象添加上去。如果Path形状是动态计算的,那就没有特别好的办法。
好的,感谢。
from spritejs.
Related Issues (20)
- 动画问题着急!!!!项目应用
- 小程序 canvas 2d 真机闪退
- 使用path或Polyline绘制路径,绘制的路径有问题 HOT 3
- 请问怎么给圆环添加圆角效果?
- Scene长度超出6000+,整个界面就会拉长没有按比例去绘制
- 想实现一个放烟花的效果,但是无从入手,求指点 HOT 1
- 模块“"spritejs"”没有导出的成员“ProtonRenderer” HOT 1
- SpriteSvg 在vue中传入一个本地svg文件加载不出来 HOT 2
- 未来有支持 webGPU的计划吗? HOT 1
- sprite.js label标签在win11上渲染异常 HOT 6
- 如何实现矩形框的拉大和缩小
- 如何实现放大缩小的效果 HOT 3
- 请问如何实现限定范围绘制,超出部分隐藏 HOT 1
- 中文文档中例子链接访问时会不断重定向 HOT 2
- server render with typescript
- Gradient的vector 怎么用啊
- 文字换行的最佳实践是啥?What is the best practice for wrapping text? HOT 2
- 依赖的css-select版本过低存在漏洞风险
- 如何监听组件的生命周期以及支持哪些事件?
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 spritejs.