Pixi renderer through Graphics object is implemented

So I used Pixi render engine to draw edges and forces in PIXI.Graphics objects (which is very close with canvas ctx in API). I'm sure, there is faster way to draw the scene, because clear graphics object in every frame refresh is very heavy operation.

My suggestion is to draw body edges in separate graphics objects once they (bodies) created and drop them to stage. But this will be different story (because we must have way to link body object with PIXI.DisplayObject to do this - may be set UID to bodies in their constructor?).

After all drawing speed is increased. I got 20 fps on 1800 particles in Canvas renderer vs 20 fps on 2800 particles in WebGl renderer.

Also I tested rendering without drawing particles on canvas, and there is results - I got drop to 20 fps on (about) 3800 particles (and got unstable fps from 30 to 50 near 3000 particles). Hope this will help you some how.