Skip to content

Commit

Permalink
try to fix render time
Browse files Browse the repository at this point in the history
  • Loading branch information
misko committed Oct 8, 2024
1 parent 7e28baa commit 20cb54c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 0 additions & 2 deletions hudes/hudes_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,7 @@ def run_loop(self):
redraw |= self.receive_messages()
# logging.debug("hudes_client: receive messages done")
if redraw:
logging.debug("hudes_client: redraw")
self.view.draw()
logging.debug("hudes_client: redraw done")
else:
# logging.debug("hudes_client: sleep")
sleep(0.01)
Expand Down
4 changes: 4 additions & 0 deletions hudes/view.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,8 @@ def draw_or_restore(self):
self.fig.canvas.restore_region(ax.cache)

def draw(self):

logging.debug("hudes_client: redraw")
if True: # backend.lower()=='agg':
# self.canvas.draw()
# self.canvas.update()
Expand All @@ -356,6 +358,8 @@ def draw(self):

pg.display.flip() # draws whole screen vs update that draws a parts

logging.debug("hudes_client: redraw done")


def norm_deg(x):
return (x + 180) % 360 - 180
Expand Down

0 comments on commit 20cb54c

Please sign in to comment.