We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hello. I need to improve performance while playing JSON. I think below logic takes long time while Draw. (There is TODO comment also)
Path.cs internal static double BezLength(float c0X, float c0Y, float c1X, float c1Y, float c2X, float c2Y, float c3X, float c3Y) { const double steps = 1000d; // TODO: improve
var length = 0d; float prevPtX = 0; float prevPtY = 0; for (var i = 0d; i < steps; i++) { var pt = GetPointAtT(c0X, c0Y, c1X, c1Y, c2X, c2Y, c3X, c3Y, i / steps); if (i > 0) { var x = pt.X - prevPtX; var y = pt.Y - prevPtY; length = length + Math.Sqrt(x * x + y * y); } prevPtX = pt.X; prevPtY = pt.Y; } return length; }
Please check it. Thank you.
The text was updated successfully, but these errors were encountered:
@minudf Have you tried the newest version? There was a great improvement on the rendering performance.
Sorry, something went wrong.
No branches or pull requests
Hello.
I need to improve performance while playing JSON.
I think below logic takes long time while Draw.
(There is TODO comment also)
Path.cs
internal static double BezLength(float c0X, float c0Y, float c1X, float c1Y, float c2X, float c2Y, float c3X, float c3Y)
{
const double steps = 1000d; // TODO: improve
Please check it.
Thank you.
The text was updated successfully, but these errors were encountered: