exploring the new segfault
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user