Hello all. I'm developing a program that uses a custom-drawn control. I subclassed TCustomControl and implemented a Paint method. For the control, all graphics are drawn using filled rectangles and extensive use of TextOut.
This works well on Windows, but unfortunately when I build and run on MacOS or Linux, the text-heavy rendering seems to go very, very slow and the control is nearly unusable. I know it is not a general drawing issue, as I have other custom-drawn controls in the project that paint extremely quickly (at real-time speeds).
Is there any recommended way to get better performance out of the text rendering, or will I have to roll my own hack which pre-renders text or uses the font as a spritesheet? I also considered using BGRABitmap, but I'm not sure if that will be any faster.