summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorquou <quou@disroot.org>2025-03-23 15:07:55 +1100
committerquou <quou@disroot.org>2025-03-23 15:07:55 +1100
commit580ca2ecaa30475abdd91cb18d196716bed07beb (patch)
tree67549138279ab38726252f0ba3bff476e5eabb95
parente9472cbcb68a8d21e55ca7a8e25365e92b019a79 (diff)
4x speed up :D
-rw-r--r--video.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/video.cpp b/video.cpp
index 51cba9e..b9cd098 100644
--- a/video.cpp
+++ b/video.cpp
@@ -2070,6 +2070,8 @@ void Device::present() {
VkSubmitInfo si{};
VkPipelineStageFlags stage =
VK_PIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BIT;
+ heap_defrag(dev->heap);
+ // ^ this makes it >4x the speed
ctx->check_end_rp();
ctx->transition(
dev->get_backbuffer(),