This commit is contained in:
KojoZero 2026-03-12 02:57:42 -07:00
parent 9b29295b07
commit 8694533891
3 changed files with 0 additions and 39 deletions

View File

@ -254,9 +254,6 @@ void RendererVulkan::RenderToWindow(PresentWindow& window, const Layout::Framebu
scheduler.Flush(frame->render_ready);
window.Present(frame);
Core::PerfStats::game_frames_updated = false;
//LOG_INFO(Render_Vulkan, "Entered Present Thread");
} else {
//LOG_INFO(Render_Vulkan, "Entered Skip Present Thread");
}
}

View File

@ -290,39 +290,6 @@ void PresentWindow::Present(Frame* frame) {
});
}
void PresentWindow::SkipPresent(Frame* frame) {
// Fix this later
if (!use_present_thread) {
scheduler.WaitWorker();
CopyToSwapchain(frame);
free_queue.push(frame);
return;
}
scheduler.Record([this, frame](vk::CommandBuffer) {
std::unique_lock lock{queue_mutex};
//present_queue.push(frame);
frame_cv.notify_one();
});
}
// Skip Present Bkup
// void PresentWindow::SkipPresent(Frame* frame) {
// if (!use_present_thread) {
// scheduler.WaitWorker();
// CopyToSwapchain(frame);
// free_queue.push(frame);
// return;
// }
// scheduler.Record([this, frame](vk::CommandBuffer) {
// std::unique_lock lock{queue_mutex};
// present_queue.push(frame);
// frame_cv.notify_one();
// });
// }
void PresentWindow::WaitPresent() {
if (!use_present_thread) {
return;

View File

@ -52,9 +52,6 @@ public:
/// Queues the provided frame for presentation.
void Present(Frame* frame);
/// Skip queuing the provided frame for presentation.
void SkipPresent(Frame* frame);
/// This is called to notify the rendering backend of a surface change
void NotifySurfaceChanged();