Add pitch-invariance debugging to main loop

pull/357/head
nyanpasu64 2019-02-25 21:49:53 -08:00
rodzic 7f0ec61782
commit 7939cac9b7
1 zmienionych plików z 10 dodań i 9 usunięć

Wyświetl plik

@ -265,13 +265,9 @@ class CorrScope:
self.renderer.render_frame(datas)
self.output.write_frame(self.renderer.get_frame())
extra_outputs.window = None
if "window" in internals:
extra_outputs.window = RenderOutput()
extra_outputs.buffer = None
if "buffer" in internals:
extra_outputs.buffer = RenderOutput()
extra_outputs.window = RenderOutput() if "window" in internals else None
extra_outputs.buffer = RenderOutput() if "buffer" in internals else None
extra_outputs.spectrum = RenderOutput() if "spectrum" in internals else None
# endregion
if PRINT_TIMESTAMP:
@ -333,17 +329,22 @@ class CorrScope:
continue
# region Display buffers, for debugging purposes.
triggers = cast(List[CorrelationTrigger], self.triggers)
if extra_outputs.window:
triggers = cast(List[CorrelationTrigger], self.triggers)
extra_outputs.window.render_frame(
[trigger._prev_window for trigger in triggers]
)
if extra_outputs.buffer:
triggers = cast(List[CorrelationTrigger], self.triggers)
extra_outputs.buffer.render_frame(
[trigger._buffer for trigger in triggers]
)
if extra_outputs.spectrum:
extra_outputs.spectrum.render_frame(
[trigger._spectrum - 0.99 for trigger in triggers]
)
# endregion
if not_benchmarking or benchmark_mode >= BenchmarkMode.RENDER: