-
Notifications
You must be signed in to change notification settings - Fork 214
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
Comments
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) |
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). |
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.
The text was updated successfully, but these errors were encountered: