From 759f7bfe6d13271b19c9a21ade59446c1277e768 Mon Sep 17 00:00:00 2001 From: Daniel Santos-Olivan Date: Mon, 29 Jun 2020 10:18:52 +0200 Subject: [PATCH] In sensor profiling, setting no rendering mode. --- PythonAPI/util/raycast_sensor_testing.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PythonAPI/util/raycast_sensor_testing.py b/PythonAPI/util/raycast_sensor_testing.py index 802e48499..2204adec4 100644 --- a/PythonAPI/util/raycast_sensor_testing.py +++ b/PythonAPI/util/raycast_sensor_testing.py @@ -250,6 +250,8 @@ def one_run(args, client): settings.fixed_delta_seconds = 0.05 world.apply_settings(settings) + if args.profiling: + settings.no_rendering_mode = True # Instanciating the vehicle to which we attached the sensors