# Unity ZED plugin image capture performance

**URL:** <https://community.stereolabs.com/t/unity-zed-plugin-image-capture-performance/11332>\
**Category:** Unity\
**Tags:** sdk, windows, unity\
**Created:** [May 20, 2026, 8:29am UTC](https://community.stereolabs.com/t/unity-zed-plugin-image-capture-performance/11332 "2026-05-20T08:29:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![marti](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@marti](https://community.stereolabs.com/u/marti)\
**Post date:** [May 20, 2026, 8:29am UTC](https://community.stereolabs.com/t/unity-zed-plugin-image-capture-performance/11332/1 "2026-05-20T08:29:48Z")

</div>

We are using ZED Mini cameras for a custom built AR headset. The application is built with the help of the Unity plugin and runs on Windows. We use the images of the ZED Mini cameras for passthrough. Generally it works.  
The only issue we have is performance. We are aiming for at least 60 fps, which means we have a frame budget of 16 ms. The process of retrieving the image textures is already taking about 6 ms (with HD 720 resolution and the camera set to 60 fps), which means more than a third of the frame budget. As you can see in the screenshot, the call to dllz\_retrieve\_textures is the bottleneck.

 ![grafik](https://community.stereolabs.com/uploads/default/original/2X/2/20ecadac18e58be59e0f2c2aa3a74632a3d0f312.png)

Do you see any chance to speed that up in your DLL function?

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [May 20, 2026, 8:49am UTC](https://community.stereolabs.com/t/unity-zed-plugin-image-capture-performance/11332/2 "2026-05-20T08:49:22Z")

</div>

Which graphics API are you using? The current implementation might be a bit faster with DX11.

---

<div class="post-metadata">

**Author:** ![marti](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@marti](https://community.stereolabs.com/u/marti)\
**Post date:** [May 20, 2026, 9:04am UTC](https://community.stereolabs.com/t/unity-zed-plugin-image-capture-performance/11332/3 "2026-05-20T09:04:10Z")

</div>

We currently use DX11.

---

<div class="post-metadata">

**Author:** ![BenjaminV](https://community.stereolabs.com/user_avatar/community.stereolabs.com/benjaminv/32/3863_2.png) [@BenjaminV](https://community.stereolabs.com/u/BenjaminV)\
**Post date:** [May 20, 2026, 9:39am UTC](https://community.stereolabs.com/t/unity-zed-plugin-image-capture-performance/11332/4 "2026-05-20T09:39:31Z")

</div>

I’m a bit surprised as it is very fast on my machine (with DX11).  
Can you reproduce the issue with any of the example scenes of the project?

What’s your hardware?

---

<div class="post-metadata">

**Author:** ![marti](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@marti](https://community.stereolabs.com/u/marti)\
**Post date:** [May 20, 2026, 10:08am UTC](https://community.stereolabs.com/t/unity-zed-plugin-image-capture-performance/11332/5 "2026-05-20T10:08:35Z")

</div>

Sorry, I forgot to mention that we have a dedicated hardware that the application runs on…  
Processor: Intel Core I5-8500 3GHz  
RAM: 16GB  
Video: NVIDIA GeForce RTX 3050 (driver version 580.97)

If I run the application on my dev laptop, it takes about 3 ms… ![grafik](https://community.stereolabs.com/uploads/default/optimized/2X/7/7b32938959cee48f37ce31ca9d378870a8e4b719_2_690x48.png)

In-editor it runs much faster…

 ![grafik](https://community.stereolabs.com/uploads/default/original/2X/c/c3e4fe98b791feb2e2045986c4f486475e41757a.png)

---

<div class="post-metadata">

**Author:** ![marti](https://community.stereolabs.com/letter_avatar_proxy/v4/letter/m/85f322/32.png) [@marti](https://community.stereolabs.com/u/marti)\
**Post date:** [May 20, 2026, 12:21pm UTC](https://community.stereolabs.com/t/unity-zed-plugin-image-capture-performance/11332/7 "2026-05-20T12:21:04Z")

</div>

We use a stereo setup with standard VR glasses and OpenXR support…

And we currently use SDK V 5.2.3…
