windows_gpu_recovery 0.1.0
windows_gpu_recovery: ^0.1.0 copied to clipboard
Flutter Windows plugin that recovers from EGL_CONTEXT_LOST / D3D11 device removed (DXGI_ERROR_DEVICE_REMOVED) after system sleep or GPU driver reset. Uses a sentinel D3D11 device for detection and a V [...]
0.1.0 #
- Initial release.
- Sentinel D3D11 device detects GPU device loss (
DXGI_ERROR_DEVICE_REMOVED) with 2-second polling interval. - Vectored Exception Handler (VEH) protects ANGLE cleanup crashes during engine destruction, allowing
eglTerminateto clear the per-processEGLDisplaysingleton. - Posts
WM_GPU_RECOVERYto the host window for host-side engine recreation. - No Dart-side initialization required — plugin activates automatically on registration.
- Requires a one-time modification to
windows/runner/flutter_window.cppto handleWM_GPU_RECOVERYand recreate theFlutterViewController.