Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/keijiro/AsyncCaptureTest
Non-blocking screen capture example with asynchronous GPU readback
https://github.com/keijiro/AsyncCaptureTest
graphics unity unity3d
Last synced: about 1 month ago
JSON representation
Non-blocking screen capture example with asynchronous GPU readback
- Host: GitHub
- URL: https://github.com/keijiro/AsyncCaptureTest
- Owner: keijiro
- Created: 2018-01-12T09:35:02.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2023-04-02T06:04:33.000Z (over 1 year ago)
- Last Synced: 2024-08-04T02:09:49.682Z (5 months ago)
- Topics: graphics, unity, unity3d
- Language: C#
- Homepage:
- Size: 55.7 KB
- Stars: 387
- Watchers: 19
- Forks: 49
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
AsyncCaptureTest
================![screenshot](https://user-images.githubusercontent.com/343936/131082461-5e9579cb-9aba-48f9-8017-52a2e80e016c.png)
This Unity sample project shows how to use the [asynchronous GPU readback API]
to capture render outputs without blocking the main thread.[asynchronous GPU readback API]:
https://docs.unity3d.com/ScriptReference/Rendering.AsyncGPUReadback.htmlNote that there is a trade-off between performance and latency. It's only
applicable when a small amount of latency is acceptable. Screen capture is one
of the best-fit cases for the feature.Unity 2023 Update
-----------------I updated this project to use the [Awaitable] class introduced in Unity 2023.1.
Now you can use the GPU readback API with the C# asynchronous programming
features (async/await).[Awaitable]:
https://docs.unity3d.com/2023.1/Documentation/ScriptReference/Awaitable.html