2D GD Paint - how to optimize draw calls?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By ntzone18

Hello i use template 2D GD Paint Demo for simple paint app. Its working well but when brush objects is more than 1000 then the application speed drops very much, how to improve performance?