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

AndroidAppmethodCode SnippetDelphiFiremonkeyIOSOSXWindows

Customize OpenGL GPU Settings For Delphi XE6 And XE7 Firemonkey Apps On Android And IOS

Delphi XE6 XE7 Firemonkey Override OpenGL Settings Android IOSBuried near the bottom of the Delphi XE6 release notes is this tidbit on overridding the OpenGL rendering parameters to ring every last bit of performance out of Firemonkey. I’m pretty sure you can apply this function to your projects compiled in Delphi XE6, Delphi XE7, and AppMethod (and probably C++Builder too). Basically there is a new event called RenderingSetupCallback that allows you to override the default GPU settings that Firemonkey uses to render itself. These settings include ColorBits, DepthBits, the stencil buffer, and the multisample setting. The help document states that if you don’t use 3D objects in your project you can disable the depth buffer. If you don’t use fill paths or vector canvas shapes you can disable the stencil buffer. And if you would prefer your app to run faster and sacrifice color fidelity you can change the colorbits to run at 16bit. You set up this function from the initialization section. I did limited testing of this function using GameBench and was not able to see much of a difference but it did appear that the GPU graph smoothed out a bit. Each application is going to be different so you’ll need to test the various settings yourself to see if it will speed up your Delphi XE6 and Delphi XE7 Firemonkey applications or not. It states that the function is for Android and IOS but it may also work on Mac OSX (and possibly Windows if you enable OpenGL mode).

Head over and check out the full documentation about this feature for Delphi XE6 and XE7 Firemonkey on the Embarcadero docwiki.

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

Related posts
AndroidC++BuilderCode SnippetDelphiDemoFiremonkeyIOSOSXShowcaseWindows

Powerful Cross Platform Email App Sample In Delphi 10.4.1 FireMonkey For Android And IOS

AndroidC++BuilderDelphiFiremonkeyIOSOSXWindows

Significant Update Available For Delphi FireMonkey 10.4.1 On Android, IOS, OSX, Windows, And Linux

C++BuilderDelphiIDEWindows

Professional SVG Icon Image List For Delphi 10.4 FireMonkey On Windows

AndroidC++BuilderDelphiFiremonkeyIOSLiveBindingsOSXWindows

Top Tips And Tricks To Speed Up Development With Delphi 10.4 FireMonkey On Android and IOS

Sign up for our Newsletter and
stay informed

Leave a Reply