Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Slow Rendering Maximized Window On Windows #264

Open
FMXExpress opened this issue Sep 10, 2023 · 3 comments
Open

Slow Rendering Maximized Window On Windows #264

FMXExpress opened this issue Sep 10, 2023 · 3 comments

Comments

@FMXExpress
Copy link

I have this project ( https://www.fmxexpress.com/deep-space-rocks-runtime-customizable-mobile-arcade-game-for-delphi-10-2-tokyo/ ) which uses a game loop. It works fast in the standard FMX. The normal screen size (not maximized) runs fast and the maximized version runs fast (this is all on Windows). When I add Skia4Delphi 5.0.0 to the project and run it in the normal screen size (not maximized) it also runs fast. When I maximize the window of the Skia4Delphi 5.0.0 enabled version then it runs slow.

So something is different with the way the Skia4Delphi version effects the game loop vs. standard FMX rendering under Windows. On the larger render area it effects the performance.

@viniciusfbb
Copy link
Member

I remember an issue like this in v5 and fixed in v6 beta. Could you test using the latest version? v6.0.0-beta4.

@viniciusfbb
Copy link
Member

I tested the projects and I confirm the slow performance with Skia using the default Windows render (raster CPU), but the normal performance using the Skia OpenGL (GPU) or Skia Vulkan (GPU). I will keep this opened for now because maybe we could change the default backend of Skia for Windows.

You can also test it adding to the dpr:

  ...
begin
  GlobalUseSkia := True;
  GlobalUseVulkan := True;
  GlobalUseSkiaRasterWhenAvailable := False;
  ...

@Spelt
Copy link

Spelt commented Apr 3, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants