Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision |
asyncgpureadback [2022/01/28 17:47] – 73.217.35.3 | asyncgpureadback [2025/01/15 04:35] (current) – external edit 127.0.0.1 |
---|
==== Random failures ==== | ==== Random failures ==== |
| |
In some cases<sup>[//[[:wiki:tag:research-needed|research needed]]//]</sup> ((observed at least on 2018.2.21 when exiting play mode and sometimes while paused in editor)), the callback will be called but when attempting to call [[https://docs.unity3d.com/ScriptReference/Rendering.AsyncGPUReadbackRequest.GetData.html|GetData]], it will throw an exception. | In some cases<sup>[//[[:wiki:tag:research-needed|research needed]]//]</sup>, the callback will be called but when attempting to call [[https://docs.unity3d.com/ScriptReference/Rendering.AsyncGPUReadbackRequest.GetData.html|GetData]], it will throw an exception.((observed at least on 2018.2.21 when exiting play mode and sometimes while paused in editor)) |
| |
The cause is unknown, it does not appear to be detectable beforehand (all [[https://docs.unity3d.com/ScriptReference/Rendering.AsyncGPUReadbackRequest.html|AsyncGPUReadbackRequest]] properties indicate that it's a valid completed request). It seems to be safe to catch and ignore this exception. | The cause is unknown, it does not appear to be detectable beforehand. All [[https://docs.unity3d.com/ScriptReference/Rendering.AsyncGPUReadbackRequest.html|AsyncGPUReadbackRequest]] properties indicate that it's a valid completed request. It seems to be safe to catch and ignore this exception. |
| |