Adding in tracy profiler
This commit is contained in:
@@ -5,6 +5,8 @@
|
||||
#include <imgui_impl_vulkan.h>
|
||||
#include <imgui_internal.h>
|
||||
|
||||
#include <tracy/Tracy.hpp>
|
||||
|
||||
#include "resources/render_target.hpp"
|
||||
|
||||
namespace sophia {
|
||||
@@ -79,6 +81,7 @@ ImGuiRenderer::~ImGuiRenderer() {
|
||||
}
|
||||
|
||||
void ImGuiRenderer::beginFrame() {
|
||||
ZoneScoped;
|
||||
releaseStaleTextures();
|
||||
|
||||
ImGui_ImplVulkan_NewFrame();
|
||||
@@ -183,6 +186,7 @@ void ImGuiRenderer::applyLayoutIfNeeded(ImGuiID dockspaceId,
|
||||
}
|
||||
|
||||
void ImGuiRenderer::endFrame(vk::CommandBuffer commandBuffer) {
|
||||
ZoneScoped;
|
||||
ImGui::Render();
|
||||
ImDrawData* mainDrawData = ImGui::GetDrawData();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user