#15098: Add headless mode with software OpenGL rendering

This commit is contained in:
Magne Sjaastad committed 2026-11-03 15:23:31 +01:00
1 parent 7b5a977401
commit 278248b71d
10 files changed
+280 -35

No files matched your search

@@ -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();