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

Compatible with custom Canvas #235

Open
viniciusfbb opened this issue Mar 7, 2022 · 2 comments
Open

Compatible with custom Canvas #235

viniciusfbb opened this issue Mar 7, 2022 · 2 comments

Comments

@viniciusfbb
Copy link

I know it's a lot of work, but it would be great to have support for custom canvas. For that, there should be some define to use TBitmap instead of TTexture.

@Zeus64
Copy link
Collaborator

Zeus64 commented Mar 7, 2022

Yes i agree but the problem with Tbitmap (under firemonkey) is that is can not work in background thread :( that a real problem. in other way, TTexture is little more light and can work in background thread (I mean you can create the texture in background thread)

@viniciusfbb
Copy link
Author

Yes, firemonkey's TBitmap works in background thread, but not in parallel, the TCanvas lock blocks it. It is even possible to draw with the GPU in parallel, but it is a very complex and risky design. The solution used was to let the UI draw with the GPU while all TBitmaps draw with the CPU. That way, the TCanvas lock can even be removed (I even suggested removing it optionally RSP-37232).

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

2 participants