From 0e4df0a50e55c4c28c187cb05773a169608fbadc Mon Sep 17 00:00:00 2001 From: Geoff Hutchison Date: Mon, 14 Oct 2024 09:50:23 -0400 Subject: [PATCH] Change defaults to turn off shadows, depth blur, and edge Should generally improve speed Signed-off-by: Geoff Hutchison --- avogadro/mainwindow.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/avogadro/mainwindow.cpp b/avogadro/mainwindow.cpp index b4620210..543124ba 100644 --- a/avogadro/mainwindow.cpp +++ b/avogadro/mainwindow.cpp @@ -388,15 +388,15 @@ void MainWindow::setupInterface() Rendering::SolidPipeline* pipeline = &glWidget->renderer().solidPipeline(); if (pipeline) { pipeline->setAoEnabled( - settings.value("MainWindow/ao_enabled", true).toBool()); + settings.value("MainWindow/ao_enabled", false).toBool()); pipeline->setDofEnabled( - settings.value("MainWindow/dof_enabled", true).toBool()); + settings.value("MainWindow/dof_enabled", false).toBool()); pipeline->setFogEnabled( settings.value("MainWindow/fog_enabled", true).toBool()); pipeline->setAoStrength( settings.value("MainWindow/ao_strength", 1.0f).toFloat()); pipeline->setEdEnabled( - settings.value("MainWindow/ed_enabled", true).toBool()); + settings.value("MainWindow/ed_enabled", false).toBool()); } // Our tool dock. @@ -1812,7 +1812,7 @@ void MainWindow::setBackgroundColor() GLWidget* glWidget(nullptr); if ((glWidget = qobject_cast(m_multiViewWidget->activeWidget()))) scene = &glWidget->renderer().scene(); - pipeline = &glWidget->renderer().solidPipeline(); + pipeline = &glWidget->renderer().solidPipeline(); if (scene) { Vector4ub cColor = scene->backgroundColor(); QColor qtColor(cColor[0], cColor[1], cColor[2], cColor[3]); @@ -1823,7 +1823,7 @@ void MainWindow::setBackgroundColor() cColor[2] = static_cast(color.blue()); cColor[3] = static_cast(color.alpha()); scene->setBackgroundColor(cColor); - if(pipeline) + if (pipeline) pipeline->setBackgroundColor(cColor); if (glWidget) glWidget->update(); @@ -1847,7 +1847,7 @@ void MainWindow::setRenderingSettings() settings.setValue("MainWindow/ao_enabled", pipeline->getAoEnabled()); settings.setValue("MainWindow/ao_strength", pipeline->getAoStrength()); settings.setValue("MainWindow/dof_enabled", pipeline->getDofEnabled()); - settings.setValue("MainWindow/fog_enabled", pipeline->getFogEnabled()); + settings.setValue("MainWindow/fog_enabled", pipeline->getFogEnabled()); settings.setValue("MainWindow/ed_enabled", pipeline->getEdEnabled()); } }