Anders Melander

Results 184 comments of Anders Melander

You could ask @AngusJohnson to update the Clipper2 in Image32. As far as I can tell the _current_ version of Image32 uses a Clipper2 from mid July 2023 (which is...

That's still an order of magnitude slower which IMO is unacceptable. Also, if you could use `TStopWatch` instead of `timeGetTime` and measure 100 or 1000 iterations it would get us...

Please attach the project as a zip so I can use it to reproduce. Btw, be aware that one of the breaking changes in Clipper2 that I mentioned is actually...

Thanks. I have reproduced the problem with your example and holy hell, it's bad. | Version | Commit | Time | New time | | ---- | ---- | ----...

![billede](https://github.com/graphics32/graphics32/assets/18141921/28728e47-2731-4e06-85ad-9a5272064cf7) ![billede](https://github.com/graphics32/graphics32/assets/18141921/906f6ac1-fd1f-435a-bbd4-77c317e017fc)

If you change the `JoinStyle` to `jsMiter` it's much faster - but still a lot slower than the old version. Until this can get resolved I suggest you undefine `USE_CLIPPER_GROW`...

Actually, just use the latest version. I have now disabled Clipper2 Grow by default.

> I don't believe the Clipper library is being used in 2024-03-01-CanvasCurve.zip sample code above Yes it is - but not directly. The example calls `GR32_VectorUtils.BuildPolyline` -> `GR32_VectorUtils.BuildPolylineClipper` -> Clipper.InflatePaths....

> However it should also produce a better render. Yes it does. But not 28 times better :-)

> IOW, the polygon renderer will do the job that the Union operation does in Clipper2 (ie ignores the negative filled regions). Well, I'm not really willing to let go...