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

@@ -34,6 +34,7 @@
#include <future>
#include <streambuf>
#include <chrono>
#include <Tracy.hpp>
namespace Nuake
@@ -261,6 +262,8 @@ namespace Nuake
void Scene::Update(Timestep ts)
{
ZoneScoped;
const auto& view = m_Registry.view<QuakeMapComponent>();
for (const auto& e : view)
{
@@ -280,6 +283,7 @@ namespace Nuake
for (auto& system : m_Systems)
{
ZoneScopedN("System Update");
system->Update(ts);
}
@@ -301,6 +305,8 @@ namespace Nuake
void Scene::Draw(FrameBuffer& framebuffer)
{
ZoneScoped;
Ref<Camera> cam = nullptr;
const auto& view = m_Registry.view<TransformComponent, CameraComponent, ParentComponent>();
for (const auto& e : view)