Tracy profiler setup(disabled by default)
In order to enable it pass -DTRACY_ENABLE:BOOL:ON to the generator. E.g: cmake -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE:BOOL=ON -DTRACY_ENABLE:BOOL=ON ..
This commit is contained in:
@@ -17,6 +17,8 @@
|
||||
#include "Base/EngineConfiguration.hpp"
|
||||
#include "Controller/FreeCamCameraController.hpp"
|
||||
|
||||
#include <tracy/Tracy.hpp>
|
||||
|
||||
#pragma clang diagnostic push
|
||||
#pragma ide diagnostic ignored "cert-msc50-cpp"
|
||||
#pragma ide diagnostic ignored "cppcoreguidelines-narrowing-conversions"
|
||||
@@ -44,6 +46,7 @@ namespace OpenVulkano
|
||||
public:
|
||||
void Init() override
|
||||
{
|
||||
ZoneScoped;
|
||||
auto engineConfig = OpenVulkano::EngineConfiguration::GetEngineConfiguration();
|
||||
engineConfig->SetNumThreads(4);
|
||||
engineConfig->SetPreferFramebufferFormatSRGB(false);
|
||||
@@ -82,6 +85,7 @@ namespace OpenVulkano
|
||||
|
||||
void Tick() override
|
||||
{
|
||||
ZoneScoped;
|
||||
for (uint32_t i = 0; i < DYNAMIC; i++)
|
||||
{
|
||||
nodesPool[i].SetMatrix(glm::translate(glm::mat4x4(1), glm::vec3((std::rand() % 10000) / 1000.0f - 5, (std::rand() % 10000) / 1000.0f - 5, (std::rand() % 10000) / 1000.0f - 5)));
|
||||
|
||||
Reference in New Issue
Block a user