Hi everybody,
I am starting with Pixisjs and getting a small performance issue with something that should be really simple to process:
when I draw a triangle (moveTo, lineTo) on each mousemove event with one of the points which is the mouse position, it performs well at the beginning, but the more i follow on with mouse move, the worse get the performance. After a minute, the FPS ist really low.
I made a pen to illustrate it:
https://codepen.io/daviddarx/pen/MLEbvE
If I clear the graphic at the beginning of each mouse move event (//graphics.clear();), the performance stays good all the time.
But unfortunately, it given't the effect that I will reach anymore :( .
Am I missing something? Should I try another approach to draw elements on the stage on high frequency without erasing the stage first?
Thank you a lot for your support!
David