Commit Graph

5 Commits

Author SHA1 Message Date
ubuntu1804 c24f51d495 Implement Vulkan device lost recovery
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
2025-11-11 16:48:03 +08:00
ubuntu1804 8d550c4d7b Add real-time FPS calculation and display 2025-11-11 13:50:47 +08:00
ubuntu1804 6722ed4d5c Split ScreenLockDetector into platform classes
Introduce ScreenLockDetectorBase and move platform logic into
ScreenLockDetectorLinux and ScreenLockDetectorMacOS. Rename mac files to
*_macos, add new base/linux source files, and update CMakeLists to
include them. Convert ScreenLockDetector into a factory/facade that
creates and forwards signals to the platform detector. Add refactoring
docs and a migration guide.
2025-11-11 13:03:59 +08:00
ubuntu1804 2c7119d190 Introduce RenderWidgetBase and unify renderers
Add RenderWidgetBase and update CustomWidget and VulkanWidget to
implement its interface. Refactor MainWindow to use a single
RenderWidgetBase pointer, unify controls and status UI, and remove the
dual-tab setup. Add design and quickstart docs and register the new
header in CMakeLists.txt.
2025-11-11 10:27:06 +08:00
ubuntu1804 098b00057d 文档移到docs 2025-11-10 22:11:25 +08:00