Originally shared by David Berneda

Originally shared by David Berneda

Experimenting bypassing Firemonkey TCanvas to accelerate TeeChart "FastLine" series with many points.

So far good results in Windows (D2D), from 27 frames per second to 57 !

For iOS / Android the speed-up is not that big (yet), maybe a 20% only, but looking to find better code

Comments

  1. For Android faster wai is to use native Android canvas (not OpenGL)

    ReplyDelete
  2. Alexander Sviridenkov but, do you mean is available (a Fmx.Canvas.JavaGraphics?)

    ReplyDelete
  3. or using AndroidAPI Graphics passing the opengl context?

    ReplyDelete
  4. I meant using JCanvas/JPaint and copying result to OpenGL textures

    ReplyDelete
  5. Alexander Sviridenkov ah ! the problem is the output is transparent and must be "blended" with the existing background, and then the line/curve antialias pixels get lost or wrong

    ReplyDelete
  6. Why not to paint all (background and points) in Android and pass final bitmap to FMX canvas?

    ReplyDelete
  7. Alexander Sviridenkov well, that will mean first creating a new Canvas (see sources fmx.canvas.xxx.pas units) which is not a trivial task. I'd like first to try small simple things

    ReplyDelete

Post a Comment