Commit Graph

15 Commits

Author SHA1 Message Date
ubuntu1804 29d988cd7f 优化PowerMonitor输出 2025-11-11 15:57:11 +08:00
ubuntu1804 8d550c4d7b Add real-time FPS calculation and display 2025-11-11 13:50:47 +08:00
ubuntu1804 e723636f9a Pass elapsed time to renderer and use for time UBO 2025-11-11 13:39:17 +08:00
ubuntu1804 f594d28fde clean debug info in VulkanWidget::recordCommandBuffer 2025-11-11 13:32:32 +08:00
ubuntu1804 e34cb5883a Prevent rendering during close and validate surface
Add m_isClosing flag and closeEvent to stop rendering, stop the render
timer and wait for device idle. Guard swapchain creation and recreation
to abort when closing. Check Vulkan return values and detect invalid
surface capabilities to avoid crashes during window teardown.
2025-11-11 10:39:40 +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 8ee653e1a6 锁屏仅绘制一帧然后停止绘制 2025-11-11 09:56:11 +08:00
ubuntu1804 fb54be25ec 支持锁屏帧的绘制 2025-11-11 09:52:19 +08:00
ubuntu1804 95b83d5ed3 Support triple buffering and improve buffer sync
Increase MAX_FRAMES_IN_FLIGHT to 3 and cap swapchain images accordingly
Replace vkDeviceWaitIdle with per-copy fence, extend wait timeout and
add diagnostic logging and counters Add stronger error logging and
cleanup on vertex/index buffer creation and copy failures; reset handles
to VK_NULL_HANDLE on failure
2025-11-11 09:14:14 +08:00
ubuntu1804 6c5fbe0e4b Use std140 UBO layout and add Vulkan tab
Change uniform buffer to std140 with explicit fields: time, resX, resY,
rotation, wavePhase plus padding for proper std140 alignment. Regenerate
SPIR-V and embedded .inc files to match.

Add optional VulkanWidget tab
2025-11-10 22:08:52 +08:00
ubuntu1804 d82fc95584 优化 MSAA 2025-11-10 21:51:11 +08:00
ubuntu1804 fd9c1c89e6 调整渲染文字内容 2025-11-10 21:29:00 +08:00
ubuntu1804 e8b9571d25 VulkanWidget 渲染问题完全解决 2025-11-10 17:01:06 +08:00
ubuntu1804 5dea0554b3 Add VulkanRenderer, shaders, and build scripts 2025-11-10 15:13:04 +08:00
ubuntu1804 9e15d9fab8 增加vulkan支持 2025-11-10 13:26:57 +08:00