Detect VK_ERROR_DEVICE_LOST (-4) in vkAcquireNextImageKHR, vkQueueSubmit and vkQueuePresentKHR and mark m_deviceLost. Add handleDeviceLost() and recreateDevice() to stop the render timer, cleanup and rebuild surface, logical device, swapchain, command objects, sync objects and VulkanRenderer, then restart rendering on success. Add DEVICE_LOST_RECOVERY.md with recovery docs and remove the obsolete REFACTORING_SUMMARY.md |
||
|---|---|---|
| .. | ||
| shaders_spirv | ||
| customwidget.cpp | ||
| customwidget.h | ||
| main.cpp | ||
| mainwindow.cpp | ||
| mainwindow.h | ||
| powermonitor.cpp | ||
| powermonitor.h | ||
| renderwidgetbase.h | ||
| screenlockdetector.cpp | ||
| screenlockdetector.h | ||
| screenlockdetector_base.cpp | ||
| screenlockdetector_base.h | ||
| screenlockdetector_linux.cpp | ||
| screenlockdetector_linux.h | ||
| screenlockdetector_macos.h | ||
| screenlockdetector_macos.mm | ||
| vulkanrenderer.cpp | ||
| vulkanrenderer.h | ||
| vulkanwidget.cpp | ||
| vulkanwidget.h | ||