diff --git a/src/inferno.cpp b/src/inferno.cpp index a95f5e6..6f8f151 100644 --- a/src/inferno.cpp +++ b/src/inferno.cpp @@ -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); diff --git a/src/renderer/renderer.cpp b/src/renderer/renderer.cpp index 410e160..026a48e 100644 --- a/src/renderer/renderer.cpp +++ b/src/renderer/renderer.cpp @@ -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)