mirror of
https://github.com/OPM/ResInsight.git
synced 2026-11-24 14:58:13 -06:00
#15098: Add headless mode with software OpenGL rendering
This commit is contained in:
1 parent
7b5a977401
commit
278248b71d
10 files changed
+280
-35
No files matched your search
@@ -71,6 +71,11 @@ bool RiaArgumentParser::parseArguments( cvf::ProgramOptions* progOpt )
|
||||
cvf::ProgramOptions::MULTI_VALUE );
|
||||
progOpt->registerOption( "size", "<width> <height>", "Set size of the main application window.", cvf::ProgramOptions::MULTI_VALUE );
|
||||
progOpt->registerOption( "console", "", "Launch as a console application without graphics" );
|
||||
progOpt->registerOption( "headless",
|
||||
"",
|
||||
"Run without showing any windows, using software OpenGL rendering. "
|
||||
"Combine with --savesnapshots to export images on machines without a GPU. "
|
||||
"On Linux without a display server, run under xvfb-run." );
|
||||
progOpt->registerOption( "server", "[<portnumber>]", "Launch as a GRPC server. Default port is 50051", cvf::ProgramOptions::SINGLE_VALUE );
|
||||
progOpt->registerOption( "portnumberfile", "[<filename>]", "Write the port number to this file.", cvf::ProgramOptions::SINGLE_VALUE );
|
||||
|
||||
|
||||
@@ -250,9 +250,10 @@ void RiaRegressionTestRunner::runRegressionTest()
|
||||
if ( regressionTestConfig.exportSnapshots3dViews )
|
||||
{
|
||||
QSize defaultSize = RiaRegressionTestRunner::regressionDefaultImageSize();
|
||||
RicSnapshotAllViewsToFileFeature::exportSnapshotOfViewsIntoFolder( fullPathGeneratedFolder,
|
||||
defaultSize.width(),
|
||||
defaultSize.height() );
|
||||
auto result = RicSnapshotAllViewsToFileFeature::exportSnapshotOfViewsIntoFolder( fullPathGeneratedFolder,
|
||||
defaultSize.width(),
|
||||
defaultSize.height() );
|
||||
if ( !result ) RiaLogging::error( result.error().toStdString() );
|
||||
|
||||
QApplication::processEvents();
|
||||
}
|
||||
@@ -260,10 +261,11 @@ void RiaRegressionTestRunner::runRegressionTest()
|
||||
if ( regressionTestConfig.exportSnapshotsPlots )
|
||||
{
|
||||
QSize defaultSize = RiaRegressionTestRunner::regressionDefaultImageSize();
|
||||
RicSnapshotAllPlotsToFileFeature::exportSnapshotOfPlotsIntoFolder( fullPathGeneratedFolder,
|
||||
defaultSize.width(),
|
||||
defaultSize.height(),
|
||||
true /*activate widget*/ );
|
||||
auto result = RicSnapshotAllPlotsToFileFeature::exportSnapshotOfPlotsIntoFolder( fullPathGeneratedFolder,
|
||||
defaultSize.width(),
|
||||
defaultSize.height(),
|
||||
true /*activate widget*/ );
|
||||
if ( !result ) RiaLogging::error( result.error().toStdString() );
|
||||
}
|
||||
|
||||
uint64_t usedMemoryBeforeClose = caf::MemoryInspector::getApplicationPhysicalMemoryUsageMiB();
|
||||
|
||||
Reference in new issue
Block a user