feat(core): add a timer

This commit is contained in:
Ben Kyd
2023-10-16 18:52:31 +01:00
parent 96473cf236
commit b10a0355fa
2 changed files with 5 additions and 7 deletions

View File

@@ -104,11 +104,9 @@ void rayr_draw(RayRenderer* renderer)
// ray data and nothing else being reallocated every frame for no reason
// ReferencedRayField startRays = mRaySource->getInitialRays(true);
// for (int x = 0; x < renderer->Viewport->x; x++)
// for (int y = 0; y < renderer->Viewport->y; y++)
// renderer->RenderData[y * renderer->Viewport->x + x] = { 0.1f, 0.1f, 0.1f, 1.0f };
//
// before we start we now want to check that it hasn't been force-stopped
for (int x = 0; x < renderer->Viewport->x; x++)
for (int y = 0; y < renderer->Viewport->y; y++)
renderer->RenderData[y * renderer->Viewport->x + x] = { 0.1f, 0.1f, 0.1f, 1.0f };
}
//
// void RayRenderer::computeHit(HitInfo* info)

View File

@@ -78,10 +78,10 @@ void setupImGui()
ImGuiIO& io = ImGui::GetIO();
(void)io;
io.ConfigFlags |= ImGuiConfigFlags_DockingEnable; // Enable Docking
io.ConfigFlags |= ImGuiConfigFlags_DpiEnableScaleFonts; // FIXME-DPI: THIS CURRENTLY DOESN'T
io.ConfigFlags |= ImGuiConfigFlags_DpiEnableScaleFonts; // FIXME: THIS CURRENTLY DOESN'T
// WORK AS EXPECTED. DON'T USE IN
// USER APP!
io.ConfigFlags |= ImGuiConfigFlags_DpiEnableScaleViewports; // FIXME-DPI
io.ConfigFlags |= ImGuiConfigFlags_DpiEnableScaleViewports; // FIXME:
// io.ConfigDockingWithShift
// = true;