Skip to content

Commit

Permalink
Debug rendering.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Feb 1, 2024
1 parent 00094dc commit 6aab53b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
1 change: 1 addition & 0 deletions .github/workflows/ci-base-tests-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ jobs:
scenarios/sumo/zoo_intersection
- name: Run smoke tests
run: |
/usr/bin/Xorg -noreset +extension GLX +extension RANDR +extension RENDER -logfile ./xdummy.log -config /etc/X11/xorg.conf -novtswitch :1 &
. ${{env.venv_dir}}/bin/activate
PYTHONPATH=$PWD PYTHONHASHSEED=42 pytest -v \
--doctest-modules \
Expand Down
8 changes: 6 additions & 2 deletions smarts/p3d/renderer.py
Original file line number Diff line number Diff line change
Expand Up @@ -787,8 +787,12 @@ def _load_line_data(self, path: Path, name: str) -> GeomNode:
def _ensure_root(self):
if self._root_np is None:
self._root_np = self._showbase_instance.setup_sim_root(self._simid)
if self._log.getEffectiveLevel() <= logging.DEBUG:
self._log.debug("Renderer started with backend %s", self._showbase_instance.pipe.get_type())
# if self._log.getEffectiveLevel() <= logging.DEBUG:
# self._log.debug(
print(
"Renderer started with backend %s",
self._showbase_instance.pipe.get_type(),
)

def load_road_map(self, map_path: Union[str, Path]):
"""Load the road map from its path."""
Expand Down

0 comments on commit 6aab53b

Please sign in to comment.