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
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
For Android faster wai is to use native Android canvas (not OpenGL)
ReplyDeleteAlexander Sviridenkov but, do you mean is available (a Fmx.Canvas.JavaGraphics?)
ReplyDeleteor using AndroidAPI Graphics passing the opengl context?
ReplyDeleteI meant using JCanvas/JPaint and copying result to OpenGL textures
ReplyDeleteAlexander 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
ReplyDeleteWhy not to paint all (background and points) in Android and pass final bitmap to FMX canvas?
ReplyDeleteAlexander 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