より良いエンジニアを目指して

1日1つ。良くなる!上手くなる!

「Failed to present D3D11 swapchain due to device reset/removed.This error can happen if you draw or dispatch very expensive workloads to the GPU,which can cause Windows to detect a GPU Timeout and reset the device. 」

Failed to present D3D11 swapchain due to device reset/removed.This error can happen if you draw or dispatch very expensive workloads to the GPU,which can cause Windows to detect a GPU Timeout and reset the device.

というエラーがUnityで起きます。

自分の場合、Play中に画面サイズを変更すると起きることがあります。

Managed DirectXを触っていたとき、画面サイズが変わると描画関係の値の扱いがややこしく、下手に扱うと例外になる経験をしてます。

そんな感じで、画面サイズを変更した時の値の扱いがうまくいかず、トラブったんでしょう。

多分。