Added compatibility for non-redering mode in python clients lib. Small change in the command disable-rendering bool val

This commit is contained in:
Juan Belón 2018-06-04 09:56:06 +02:00 committed by nsubiron
parent c39cc46646
commit 341bf178e5
3 changed files with 5 additions and 3 deletions

View File

@ -24,7 +24,7 @@ SynchronousMode=true
; vehicles, pedestrians and traffic signs. Disabled by default to improve
; performance.
SendNonPlayerAgentsInfo=false
; Flag to enable or disable the world rendering.
; Flag to enable or disable the world and hud rendering.
; Disabled by default.
DisableRendering = false

View File

@ -36,6 +36,7 @@ class CarlaSettings(object):
# [CARLA/Server]
self.SynchronousMode = True
self.SendNonPlayerAgentsInfo = False
self.DisableRendering = False
# [CARLA/QualitySettings]
self.QualityLevel = 'Epic'
# [CARLA/LevelSettings]
@ -94,7 +95,8 @@ class CarlaSettings(object):
add_section(S_SERVER, self, [
'SynchronousMode',
'SendNonPlayerAgentsInfo'])
'SendNonPlayerAgentsInfo',
'DisableRendering'])
add_section(S_QUALITY, self, [
'QualityLevel'])
add_section(S_LEVEL, self, [

View File

@ -213,7 +213,7 @@ void UCarlaSettings::LoadSettings()
}
if(FParse::Param(FCommandLine::Get(), TEXT("disable-rendering")))
{
bDisableRendering = false;
bDisableRendering = true;
}
}
}