Updating carla settings to allow user to disable rendering and set server tieout from the command line

This commit is contained in:
Aidan Clear 2019-03-12 15:58:11 +01:00
parent 18c60fbac0
commit b184ec652b
3 changed files with 11 additions and 0 deletions

View File

@ -1,4 +1,5 @@
## Latest Changes
* Allow user to disable rendering and set the server timeout from the command line
* Allow usage of hostname for carla::Client and resolve them to IP address
* Added `map.transform_to_geolocation` to transform Location to GNSS GeoLocation
* Added `id` property to waypoints, uniquely identifying waypoints up to half centimetre precision

View File

@ -88,6 +88,8 @@ Other command-line options
* `-carla-port=N` Listen for client connections at port N, streaming port is set to N+1.
* `-quality-level={Low,Epic}` Change graphics quality level, "Low" mode runs significantly faster.
* `-carla-server-timeout=10000ms` Set server timeout.
* `-no-rendering` Disable rendering.
* [Full list of UE4 command-line arguments][ue4clilink].
[ue4clilink]: https://docs.unrealengine.com/en-US/Programming/Basics/CommandLineArguments

View File

@ -178,6 +178,14 @@ void UCarlaSettings::LoadSettings()
{
QualityLevel = QualityLevelFromString(StringQualityLevel, EQualityLevel::Epic);
}
if (FParse::Value(FCommandLine::Get(), TEXT("-carla-server-timeout="), Value))
{
ServerTimeOut = Value;
}
if (FParse::Param(FCommandLine::Get(), TEXT("-no-rendering")))
{
bDisableRendering = true;
}
}
}