Get access to over 100 FireMonkey cross platform samples for Android, IOS, OSX, Windows, and Linux!

AndroidAppmethodCode SnippetComponentDelphiFiremonkeyIOSOSXWindows

Cached Text Rendering Speed Enhancement For Delphi XE7 Firemonkey On Android And IOS

| Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOS

Delphi XE7 Firemonkey Fast Cached Draw Text Rendering | Delphi 11 10 XE8 XE7 XE Seattle Berlin Tokyo Rio Firemonkey Delphi Android Delphi IOSDeveloper Simon Stuart from LaKraven Studios Ltd. has released a cached text rendering library for Delphi XE7 Firemonkey. Simon is also the author of the awesome MonkeyMixer component which lets you use FMX and VCL forms in the same app. Basically this cached text rendering library uses a helper class to inject new caching functionality into the existing Firemonkey TCanvas. You enable the helper class by putting his FMXE.Helpers.Canvas unit in your uses clause. You can then use the new TCanvas.DrawCachedText() function to draw text on your TCanvas and each additional draw is cached which makes it really really fast. By cached it basically means it is drawn to a bitmap once and then the bitmap is re-used instead of drawing it again. There is sample code on his blog post. This draw cached text is along the same lines as the TImageCacheLayout component which is to say you can use bitmap caching throughout Firemonkey to vastly increase the speed. It should run on all Firemonkey platforms which are Android, IOS, Windows, and OSX plus it should work in Appmethod as well. The library is free on Github but Simon is available for contract work.

Head over and check out the full blog post about the cached text rendering library on the OTAPI blog.

Or head directly to Github and download the cached text rendering library.

Have Delphi Firemonkey questions? Ask and get answers on StackOverflow.

Related posts

Unleashing Creativity With Song Writer AI: A Deep Dive


How To Build Stable Diffusion Text To Image Prompts


FireMonkey 10.4.2 Features Updated iOS 14, Android 11, And macOS 11 Support Plus Hundreds Of Fixes


Ryzen 9 5950x: One Billion Lines Of Delphi Code Compiled In ~5 Minutes On 16 Cores

Sign up for our Newsletter and
stay informed

Leave a Reply