MCPcopy Create free account
hub / github.com/TheMariday/marimapper / run

Method run

marimapper/visualize_process.py:44–67  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

42 self._exit_event.set()
43
44 def run(self):
45 logger.debug("Renderer3D process starting")
46 initialised = False
47
48 while not self._exit_event.is_set():
49
50 if not self._input_queue.empty():
51 leds = self._input_queue.get()
52 if len(leds) < 9:
53 continue
54
55 if not initialised:
56 self.initialise_visualiser__()
57 self.reload_geometry__(leds, True)
58 initialised = True
59 else:
60 self.reload_geometry__(leds)
61
62 if initialised:
63 self._vis.poll_events()
64 self._vis.update_renderer()
65 time.sleep(1 / 60)
66 else:
67 time.sleep(1)
68
69 def initialise_visualiser__(self):
70 logger.debug("Renderer3D process initialising visualiser")

Callers

nothing calls this directly

Calls 4

reload_geometry__Method · 0.95
emptyMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected