windows_gpu_recovery 0.1.0 copy "windows_gpu_recovery: ^0.1.0" to clipboard
windows_gpu_recovery: ^0.1.0 copied to clipboard

PlatformWindows

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 eglTerminate to clear the per-process EGLDisplay singleton.
  • Posts WM_GPU_RECOVERY to 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.cpp to handle WM_GPU_RECOVERY and recreate the FlutterViewController.
1
likes
150
points
9
downloads

Documentation

API reference

Publisher

unverified uploader

Weekly Downloads

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 Vectored Exception Handler to safely destroy the dead engine and create a fresh one.

Repository (GitHub)
View/report issues

Topics

#windows #gpu #d3d11 #recovery #plugin

License

MIT (license)

Dependencies

flutter

More

Packages that depend on windows_gpu_recovery

Packages that implement windows_gpu_recovery