-
Notifications
You must be signed in to change notification settings - Fork 546
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
What time will you make skiasharp support hardware acceleration? #70
Comments
You mean the APIs, or the actual libraries that we ship with the product? The major challenge is that it would be a larger library for corner cases, so we would need to do some packaging work to sort that out. In the meantime, we would love if you try it out by building the library on your own. Currently, our main focus is to complete the API bindings, and likely add some of the missing APIs. |
Is there any hardware acceleration api in skiasharp? |
I'm confused. Does this mean that the existing version of SkiSharp is using HW graphics acceleration to do the drawing or is it using SW emulation to do the drawing?
|
I think it is useful https://skia.org/user/api/canvas Raster - CPU-only. |
Actually the only thing needed for hw-acceleration is to properly wire up skia with native OpenGL context. There are some tricks, but I have some experience in doing this in native code. The question is how that should be exposed. See this issue for details. I've also submitted initial design with implementation example but got no response, so I've stopped the work on that front. |
How dose the offical dll work on windows? |
If offical skia can do, skiasharp should too... |
Official dll needs you to manually provide opengl context and manually configure GrContext. Something like this: https://github.com/AvaloniaUI/libperspesk/blob/master/src/gl.cpp It's not the code that you want to write in C#. |
@wildfire810 @kekekeks Right now, the native dll on all the platforms link out the GPU bits as there is no support from SkiaSharp yet... but, as I am busy on #33, that requires some of the GPU bits. As a result, the "next" version should have PDF and GPU support. I am not sure if I will include the C# bindings for GPU just then, as it is more PDF-y. But, once the native bits are there, it will be easy to wrap. Basically, I am doing a bit of work for UWP as this is not yet Google-supported |
@mattleibow Thanks for the update! |
@mattleibow Now that you have closed #33 can you update us on the status of GPU support? |
@wildfire810, @alanricker, @kekekeks, @bratsche Hardware support is here (-ish) The global issue for hardware / GPU is here: #138 There is also a preview NuGet: https://www.nuget.org/packages/SkiaSharp/1.53.2-gpu1 |
@mattleibow any update on GPU acceleration in UWP? |
It has been there for quite some time. Not sure exactly what you mean? Right out the box, there is the If you are talking the pure, non-UI way, then you have to first set up a GPU context - using ANGLE - and then do the |
Excuse me, I want to know: what time will you make skiasharp support hardware acceleration?
Can you please tell me?
Because we plan to use it high load on windows wpf now, and the cross platform feature will be useful.
The text was updated successfully, but these errors were encountered: