Closed molecularentropy closed 5 years ago
Yep, nk_cos
was always meant only for nuklear internal use for low number of pixels. But I see, that this small change which shall have rather small impact on performance makes a significant difference, so I'm definitely merging it :wink:.
Thanks for tracking this down and for the pull!
Drawing a circle, with
config.circle_segment_count
set to22
, one can see a small kink in the rightmost part of the circle. Increasing the segment count to 220, we see this: It seems that the nk_cos implementation is actually really off. I have regenerated the approximation series withlolremez
. Now, with the fixed nk_cos implementation we get: Please consider for inclusion.