feat(gui): make render thread count configurable at runtime feat
authorSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 12 May 2026 19:17:34 +0000 (22:17 +0300)
committerSvjatoslav Agejenko <svjatoslav@svjatoslav.eu>
Tue, 12 May 2026 19:17:34 +0000 (22:17 +0300)
commit5f3ebb4bf39883ef4228dc7915fd76659e445ec4
tree7f2a54dfbf889536f0028d420db8dc310fc6088c
parent53b22644a6d8bb26d9430a99bdfffa3207e56597
feat(gui): make render thread count configurable at runtime

Replace the hardcoded NUM_RENDER_SEGMENTS constant with a dynamic
numRenderSegments field on RenderingContext. ViewPanel now exposes
getNumRenderThreads() and setNumRenderThreads() so callers (e.g. the
benchmark) can vary parallelism at runtime.

The render executor is recreated lazily when the thread count changes,
and the rendering context is rebuilt when the segment count no longer
matches. DeveloperToolsPanel displays the active thread count alongside
the available core count.

Also move Sixth 3D Demos TODO items into TODO.org.
TODO.org
src/main/java/eu/svjatoslav/sixth/e3d/gui/DeveloperToolsPanel.java
src/main/java/eu/svjatoslav/sixth/e3d/gui/RenderingContext.java
src/main/java/eu/svjatoslav/sixth/e3d/gui/SegmentRenderingContext.java
src/main/java/eu/svjatoslav/sixth/e3d/gui/ViewPanel.java