Skip to content

Commit e3c0e59

Browse files
committed
if software rendering is to be expected, safe users from extra punishment
e.g. in basic containerized environments - do not sleep and print message to console
1 parent 5717977 commit e3c0e59

1 file changed

Lines changed: 12 additions & 4 deletions

File tree

src/OpenCOVER/cover/OpenCOVER.cpp

Lines changed: 12 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -818,10 +818,18 @@ bool OpenCOVER::init()
818818
}
819819
if(VRViewer::instance()->softwareRendering)
820820
{
821-
hud->setText2("Warning: llvmpipe detected!");
822-
hud->setText3("COVER may run very slow and some shaders may not work.");
823-
hud->redraw();
824-
std::this_thread::sleep_for(std::chrono::seconds(5));
821+
std::cerr << "****************************************************************" << std::endl;
822+
std::cerr << "*** WARNING: software rendering/llvmpipe detected. ***" << std::endl;
823+
std::cerr << "*** COVER may run very slowly and some shaders may not work. ***" << std::endl;
824+
std::cerr << "****************************************************************" << std::endl;
825+
826+
if(!coCoviseConfig::isOn("COVER.AcceptSoftwareRendering", true))
827+
{
828+
hud->setText2("Warning: llvmpipe detected!");
829+
hud->setText3("COVER may run very slow and some shaders may not work.");
830+
hud->redraw();
831+
std::this_thread::sleep_for(std::chrono::seconds(5));
832+
}
825833
}
826834

827835
hud->setText2("initialising plugins");

0 commit comments

Comments
 (0)