What task has the OnPaint Event? Performance issue

Hey, i have issues with the performance.
Is it normal that OnPaint calls OnPaint calls OnPaint calls OnPaint…?
Maybe it is the normal gameloop?

Thanks for your time

Might be a bit late but Erasio’s answer in the thread below fixed the same issue in our project, I’ll link it in case someone else stumbles upon this.