TTriSurface hardware accelaration

TeeChart FireMonkey (Windows,OSX,iOS & Android) for Embarcadero RAD Studio, Delphi and C++ Builder (XE5+)
Post Reply
Gabriel, A. TAOUSSI
Newbie
Newbie
Posts: 2
Joined: Thu Nov 03, 2022 12:00 am

TTriSurface hardware accelaration

Post by Gabriel, A. TAOUSSI » Thu Aug 03, 2023 9:22 am

Hello,

I'm trying to represent a real-time curving substrate in 3D.
My goal is to offload most of the heavy-lifting onto a GPU.
To do so, I have put together a TTriSurface in a TChart within a demo project you'll find attached.
The rendering speed of my demo application is improvable (maximum 20 FPS on my machine).

How can I ensure effective hardware acceleration ?

Below are some items that stood out to me :
- In VCLTee, the OpenGL module achieves my requirements, but it isn't supported in FMXTee.
- Enabling global Skia4Delphi usage, TChart canvases seem to default to GLCanvas (supposedly an OpenGL canvas). Nevertheless, it doesn't seem to use the GPU out of the box.
- The base TChart canvas (D2DCanvas) doesn't seem to offload 3D rendering onto the GPU.

Below is my configuration:
Software:
- Embarcadero Delphi 11.3 version 28.0.48361.3236.
- TeeChart FMX Pro with source : Build 2023.38.230607.
- Skia4Delphi version 5.0.0.

Hardware :
- Intel Iris Xe graphics GPU (vPro i7 laptop CPU)
- Nvidia T550 Laptop GPU


Thanks in advance for your help.

Have a nice day.

Regards,

Gabriel A. TAOUSSI
Attachments
ImprovableTriSurface.zip
(7.51 KiB) Downloaded 274 times

Gabriel, A. TAOUSSI
Newbie
Newbie
Posts: 2
Joined: Thu Nov 03, 2022 12:00 am

Re: TTriSurface hardware accelaration

Post by Gabriel, A. TAOUSSI » Mon Aug 07, 2023 8:06 am

Greetings,

To demonstrate the performance I'm looking for, please find attached a project based on VCLTee I have assembled :
AcceptableTriSurface.zip
TriSurface with satisfying rendering speed and GPU usage
(7.5 KiB) Downloaded 269 times

I believe FMXTee's Chart3D holds the answer to my question. It does seem to support hardware acceleration out of the box.
Unfortunately, within a Chart3D, trisurfaces don't render at all on my machine.
In the attachments, you'll find another project to illustrate this, here is its output on my machine :
TriSurfaceInChart3D.zip
Trisurface in Chart3D project attempt
(7.18 KiB) Downloaded 271 times
Shy TriSurface.png
TriSurface won't render
Shy TriSurface.png (55.88 KiB) Viewed 16767 times

Any idea what I might be missing ?

Have a great day.

Regards,

Gabriel A. TAOUSSI

Yeray
Site Admin
Site Admin
Posts: 9428
Joined: Tue Dec 05, 2006 12:00 am
Location: Girona, Catalonia
Contact:

Re: TTriSurface hardware accelaration

Post by Yeray » Fri Aug 25, 2023 6:47 am

Hello Gabriel,

Sorry for the delayed reply here.

This is just to confirm only these environments use the GPU:
- VCL + OpenGL
- FMX + TChart3D

We are still experimenting with Skia canvas.
Gabriel, A. TAOUSSI wrote:
Mon Aug 07, 2023 8:06 am
Unfortunately, within a Chart3D, trisurfaces don't render at all on my machine.
We'll take a look at that.
Best Regards,
ImageYeray Alonso
Development & Support
Steema Software
Av. Montilivi 33, 17003 Girona, Catalonia (SP)
Image Image Image Image Image Image Please read our Bug Fixing Policy

Post Reply