Tracy MVP integration

This commit is contained in:
WiggleWizard
2024-09-02 20:37:47 +01:00
parent d20847b4e3
commit 5a801e642c
23 changed files with 202 additions and 30 deletions

View File

@@ -15,6 +15,7 @@
#include <imgui/imgui_impl_glfw.h>
#include <imgui/imgui_impl_opengl3.h>
#include <Tracy.hpp>
namespace Nuake
{
@@ -49,6 +50,8 @@ namespace Nuake
void Engine::Tick()
{
ZoneScoped;
JobSystem::Get().Update();
@@ -120,12 +123,18 @@ namespace Nuake
void Engine::Draw()
{
ZoneScoped;
RenderCommand::Clear();
// Start imgui frame
ImGui_ImplOpenGL3_NewFrame();
ImGui_ImplGlfw_NewFrame();
ImGui::NewFrame();
{
ZoneScopedN("ImGui New Frame");
ImGui_ImplOpenGL3_NewFrame();
ImGui_ImplGlfw_NewFrame();
ImGui::NewFrame();
}
// Draw scene
Window::Get()->Draw();
@@ -133,6 +142,7 @@ namespace Nuake
void Engine::EndDraw()
{
ZoneScoped;
Window::Get()->EndDraw();
}