Big Sur question

I’ve created a little app (ASObjc, Xcode) some time ago. It creates some png from beziers – nothing fancy, some rectangles and lines.
It works fine with 10.14, 10.15, you enter values, press a button and see the graphic instantly.
Now with Big Sur you have to wait for several seconds, even on a faster machine.

Any thoughts out there?