I use two canvases that show a signal.
When I use one - it runs smoothly, when both - with breaks. Why?
One:
Both:
When I use one - it runs smoothly, when both - with breaks. Why?
One:
B4X:
CanvasNCH.DrawImage(CanvasNCH.Snapshot,-1,0,CanvasNCH.Width,CanvasNCH.Height)
CanvasNCH.DrawLine(t-2,OldSig1,(t-1),Sig1,fx.Colors.Blue,2)
OldSig1=Sig1
CanvasVCH.DrawLine(t-2,OldSig2,(t-1),Sig2,fx.Colors.Green,2)
OldSig2=Sig2
B4X:
CanvasNCH.DrawImage(CanvasNCH.Snapshot,-1,0,CanvasNCH.Width,CanvasNCH.Height)
CanvasVCH.DrawImage(CanvasVCH.Snapshot,-1,0,CanvasVCH.Width,CanvasVCH.Height)
CanvasNCH.DrawLine(t-2,OldSig1,(t-1),Sig1,fx.Colors.Blue,2)
OldSig1=Sig1
CanvasVCH.DrawLine(t-2,OldSig2,(t-1),Sig2,fx.Colors.Green,2)
OldSig2=Sig2