release build setup

This commit is contained in:
Till Wübbers
2025-03-16 02:00:33 +01:00
parent 442fd23a0b
commit ebf29b058a
9 changed files with 28 additions and 10 deletions

View File

@@ -15,7 +15,7 @@
#include <SDL3/SDL.h>
#include <bx/math.h>
#include <cstdint>
#include <tracy/tracy.hpp>
#include <tracy/Tracy.hpp>
namespace Game
{

View File

@@ -7,8 +7,10 @@
#include "bx/bx.h"
#include "bx/timer.h"
#ifdef TRACY_ENABLE
#include <client/TracyProfiler.hpp>
#include <tracy/tracy.hpp>
#endif
#include <tracy/Tracy.hpp>
namespace Game
{
@@ -26,7 +28,10 @@ namespace Game
void Setup(SharedData& shared)
{
LOG("Game Setup Start!");
#ifdef TRACY_ENABLE
LOG("Tracy is enabled");
tracy::StartupProfiler();
#endif
if (shared.Game.PermanentStorage == nullptr)
{
@@ -89,6 +94,8 @@ namespace Game
{
LOG("Shutdown");
SetupInstance.Rendering.Shutdown();
#ifdef TRACY_ENABLE
tracy::ShutdownProfiler();
#endif
}
} // namespace Game

View File

@@ -342,7 +342,9 @@ namespace Game
bgfx::Init init;
init.type = bgfx::RendererType::Direct3D12;
#ifdef _DEBUG
init.debug = true;
#endif
init.platformData.nwh = shared.Window.Handle;
init.platformData.ndt = nullptr;
init.platformData.type = bgfx::NativeWindowHandleType::Default;

View File

@@ -105,7 +105,7 @@ namespace Game
Model Models[MaxModels];
int32_t LastWidth = 0;
int32_t LastHeight = 0;
uint32_t ResetFlags = 0; // BGFX_RESET_VSYNC;
uint32_t ResetFlags = BGFX_RESET_NONE;
uint16_t MainViewID = 10;
float LastShaderLoadTime = 0.0f;
int32_t DitherRecursion = 1;