Alcinoe icon indicating copy to clipboard operation
Alcinoe copied to clipboard

Compatible with custom Canvas

Open viniciusfbb opened this issue 2 years ago • 2 comments

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.

viniciusfbb avatar Mar 07 '22 15:03 viniciusfbb

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)

Zeus64 avatar Mar 07 '22 15:03 Zeus64

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).

viniciusfbb avatar Mar 07 '22 15:03 viniciusfbb