Anyway BitmapCreator on B4J is much faster then Canvas, the procedures of DrawPath that I put in code snippet (here) ere very fast. I'll probably make a version of my B4J library that only uses BitmapCreator, if I have time
I wrote a few times already that it is done automatically when using drawpath so you just did an extra invalidate.
here's an example that it does update the red line without the invalidate
B4X:
Dim p As Pane
p.Initialize("")
MainForm.RootPane.AddNode(p,0,0,640,400)
Dim can As B4XCanvas
can.Initialize(p)
Dim pp As B4XPath
pp.Initialize(0,0)
pp.LineTo(100,100)
pp.LineTo(0,100)
can.DrawPath(pp,0xffff0000,False,1)
' can.Invalidate
It is not related to DrawPath. JavaFX Canvas object "auto invalidates". There is no invalidate method in jFX. B4XCanvas.Invalidate doesn't do anything in B4J.
my initial 3D model drawing example used the extended canvas lib (from Klaus?) .drawPolygon and it's way faster and there's no need to invalidate either.
I think it's 60fps vs 0.5fps so the difference is huge.