Explore ways to improve performance of GetMirrorImage
DirectX implementation
#11
Labels
enhancement
New feature or request
GetMirrorImage
DirectX implementation
#11
DirectXCompositor.GetMirrorImage
is really slow right now (~15ms per call on average), mostly because there's lots of copying and manipulation going on. We should explore different ways of improving performance, such as:async
(would OpenVR be happy with that? If not, we could call the OpenVR API on the main thread, then do the rest of the work on a different thread)FlipChannels
after the image is copied over, can we do this while copying the memory initially?Texture2D
->Bitmap
copying more efficient?I don't work with DirectX much (or graphics APIs in general) so there could be something I'm missing. Any input is appreciated :)
For reference, here's the method:
OVRSharp/OVRSharp.Graphics.DirectX/DirectXCompositor.cs
Lines 52 to 103 in f75f356
The text was updated successfully, but these errors were encountered: