Michael Schnell wrote:
On 11/10/2015 12:30 PM, Luca Olivetti wrote:
- it is very cpu intensive (I have to put it over a picture, so the
invalidate will also force the repainting of the bitmap I guess)
The only cure for this is using the graphic processor: only once create
a wide pixel array from the text and then use Direct X (Open GL or
similar API) to display part of the text "behind" in a rectangle.
Using OpenGL etc. risks breaking the program for anybody accessing it
over remote X (including SSH) or VNC etc. (either for routine use or
remote support).
I believe there are ways that OpenGL can be mapped over a LAN, but in
practice it would- at present at least- be safest to assume that these
aren't reliable and at the very least provide a user option to make sure
the program doesn't attempt to use it for anything that is basically
cosmetic.
--
Mark Morgan Lloyd
markMLl .AT. telemetry.co .DOT. uk
[Opinions above are the author's, not those of his employers or colleagues]
--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus