Comments (4)
@JSUYA hello, it's about performance?
Hi @hermet I think this is a bug. It takes a long time to calculate, as if it is stuck in an infinite loop.
from thorvg.
There is more case.
The while loop of tvgSwRle.cpp: _cubicTo() runs for a very long time.
If there are more many paths with such large numbers, the app look like stopped.
/* Circle */
auto cx = 550.0f;
auto cy = 550.0f;
auto radius = 125.0f;
auto halfRadius = radius * 0.552284f;
//Prepare Path Commands
tvg::PathCommand cmds2[6];
cmds2[0] = tvg::PathCommand::MoveTo;
cmds2[1] = tvg::PathCommand::CubicTo;
cmds2[2] = tvg::PathCommand::CubicTo;
cmds2[5] = tvg::PathCommand::Close;
//Prepare Path Points
tvg::Point pts2[13];
pts2[0] = {cx, cy - radius}; //MoveTo
//CubicTo 1
pts2[1] = {20000000000, 20000000000}; //Ctrl1
pts2[2] = {cx + radius, cy - halfRadius}; //Ctrl2
pts2[3] = {cx + radius, cy}; //To
//CubicTo 2
pts2[4] = {cx + radius, cy + halfRadius}; //Ctrl1
pts2[5] = {cx + halfRadius, cy + radius}; //Ctrl2
pts2[6] = {cx, cy+ radius}; //To
auto shape2 = tvg::Shape::gen();
shape2->appendPath(cmds2, 6, pts2, 13); //copy path data
shape2->fill(255, 255, 0);
if (canvas->push(std::move(shape2)) != tvg::Result::Success) return;
from thorvg.
@JSUYA hello, it's about performance?
from thorvg.
Essentially, there is a performance issue when the stroke width is extremely large. It necessitates figuring out any algorithm optimization at void _lineTo(RleWorker& rw, the SwPoint& to) in tvgSwRle.cpp
from thorvg.
Related Issues (20)
- web: Separate the web feature into thorvg.web project.
- Always get Invalid argument error while loading svg files on Windows HOT 20
- frame buffer is not updated on tvg_lottie_animation_override for a previously rendered frame
- frame buffer not updating on tvg_lottie_animation_override for previously rendered frames HOT 1
- Support DPR (Device Pixel Ratio) option HOT 1
- Refactoring the renderer - raster engines. HOT 2
- Undefined symbol for tvg_canvas_set_viewport C API HOT 1
- lottie: incorrect masking drawing HOT 5
- lottie: "tp" support
- lottie: incorrect polystar transform direction HOT 1
- lottie: high cpu usage causing a browser freeze HOT 1
- lottie: trim path issue
- lottie: fill rule handling
- build error HOT 2
- TVG image format enhancement HOT 4
- lottie: not rendering HOT 3
- Text in svg cannot be displayed correctly HOT 7
- svg: the webp embedded support is currently without the mime actually bug/broken
- example: support DPI based rendering
- CAPI: Support the Text
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 thorvg.