Differences
This shows you the differences between two versions of the page.
Both sides previous revision
Previous revision
Next revision
|
Previous revision
|
asyncgpureadback [2022/01/28 17:47] 73.217.35.3 |
asyncgpureadback [2022/01/28 17:47] (current) 73.217.35.3 |
==== 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. |
| |