Skip to content

Commit

Permalink
Plan next change.
Browse files Browse the repository at this point in the history
  • Loading branch information
Gamenot committed Jan 10, 2024
1 parent 1353e14 commit c7bbbe3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions smarts/core/smarts.py
Original file line number Diff line number Diff line change
Expand Up @@ -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()

Expand Down

0 comments on commit c7bbbe3

Please sign in to comment.