exploring the new segfault

This commit is contained in:
Ben Kyd
2023-10-16 23:14:16 +01:00
parent b10a0355fa
commit 01a57125d0
2 changed files with 4 additions and 6 deletions

View File

@@ -193,7 +193,7 @@ bool inferno_pre(InfernoApp* app)
{
app->FrameCount++;
if (app->FrameCount % 100 == 0) {
yolo::info("FPS: {}", 1.0 / inferno_timer_get_time(app->MainTimer).count());
yolo::info("Average FPS: {}", 1.0 / inferno_timer_get_time(app->MainTimer).count());
inferno_timer_print(app->MainTimer, false);
}
@@ -316,8 +316,6 @@ int inferno_run(InfernoApp* app)
ImGui::ShowDemoWindow();
}
graphics::window_render();
inferno_end(app);
inferno_timer_end(app->MainTimer);

View File

@@ -104,9 +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 };
// 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)