From c7bbbe3298b22f4bc863ccb9e5e3008916d2fa00 Mon Sep 17 00:00:00 2001 From: Montgomery Alban Date: Wed, 10 Jan 2024 22:01:27 +0000 Subject: [PATCH] Plan next change. --- smarts/core/smarts.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/smarts/core/smarts.py b/smarts/core/smarts.py index aa7927bdb4..12cfb388fa 100644 --- a/smarts/core/smarts.py +++ b/smarts/core/smarts.py @@ -370,9 +370,12 @@ def _step(self, agent_actions, time_delta_since_last_step: Optional[float] = Non # so that all updates are ready before rendering happens per with timeit("Syncing the renderer", self._log.debug): self.renderer_ref.sync(self.cached_frame) + + # TODO OBSERVATIONS: this needs to happen between the base and rendered observations with timeit("Running through the render pipeline", self._log.debug): self.renderer_ref.render() + # TODO OBSERVATIONS: Need to split the observation generation with timeit("Calculating observations and rewards", self._log.debug): observations, rewards, scores, dones = self._agent_manager.observe()