microsoft / Lumia-imaging-sdk

Lumia Imaging SDK is a comprehensive set of GPU/CPU imaging tools and effects that run on both mobile and desktop, with high speed and memory efficiency. Samples and extras code are included.
MIT License
75 stars 37 forks source link

Synchronous Rendering #21

Open JohnnyWestlake opened 6 years ago

JohnnyWestlake commented 6 years ago

I know there's not much chance of this happening at this point, but is there any hope of getting some proper synchronous rendering options for Direct3DSurfaceRenderer?

It's especially important to keep threaded during Win2D drawing or creating video effect definitions, and frankly the operations themselves aren't asynchronous (but are presumably being put on a background thread), which we have no use for in these scenarios other than losing performance using .AsTask().Wait()

Or even better, open source the Adjustments / Artistic namespaces etc. so that someone and make them play even more conveniently with Win2D.

cadahl commented 6 years ago

As I remember it, v3 was mostly synchronous internally and only launched PPL tasks in the outermost public API methods.

Maybe the internal synchronous methods were exposed somehow, I can't seem to recall the details.