Skip to content

keijiro/AsyncCaptureTest

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 

AsyncCaptureTest

screenshot

This Unity sample project shows how to use the asynchronous GPU readback API to capture render outputs without blocking the main thread.

Note 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).

About

Non-blocking screen capture example with asynchronous GPU readback

Topics

Resources

Stars

Watchers

Forks

Languages