Changed picture, made console togglable (which drastically (doubled) improves framerate

This commit is contained in:
Conál 2024-02-21 00:15:14 -05:00
parent bc865c969d
commit 479722185f
3 changed files with 5 additions and 9 deletions

View File

@ -120,16 +120,11 @@ void UI::newFrame() {
ImGui::SetNextWindowBgAlpha(0.5f);
ImGui::Begin("Rendering Info", nullptr);
ImGui::Text("# of Indices: %zu", ren->n_indices);
ImGui::Text("FPS: %f", ren->fps);
ImGui::Text("Time: %f", ren->time);
ImGui::Checkbox("Fly Camera", &ren->flycam);
ImGui::SliderFloat("Near Plane", &ren->near_plane, 0.00, 0.20);
ImGui::SliderFloat("Far Plane", &ren->far_plane, 1000.0, 10000.0);
ImGui::SliderFloat("Tessellation Factor", &ren->tess_factor, 0.1, 10.0);
ImGui::SliderFloat("Edge Size", &ren->tess_edge_size, 0.0, 40.0);
if(ren->in_menu)
console->Draw();
ImGui::End();

View File

@ -36,5 +36,6 @@ void main() {
gl_Position = proj * view * vec4(aPos, 1.0);
texCoord = aTexCoord;
norm = aNorm;
// color = vec4(length(unpackABGR(aColor).xyz));
color = unpackABGR(aColor);
}

Binary file not shown.

Before

Width:  |  Height:  |  Size: 547 KiB

After

Width:  |  Height:  |  Size: 342 KiB