Skip to content

v0.0.3.H - Performance + 2D Canvas UX

Pre-release
Pre-release

Choose a tag to compare

@nghiazer nghiazer released this 29 May 00:28

What's new in v0.0.3.H

Performance

  • OverlapDetector spatial grid — replaced O(n²) AABB nested loop with uniform bucket-partition broad phase. Each face is placed in all grid cells its AABB covers (typically 1-4 cells); only pairs sharing a cell are tested. Cell size = max(2 x avg AABB side, canvas extent / 256) keeping the grid at most 256x256. On spread-out n=2000 meshes: ~4 000 comparisons vs 2 000 000 (~500x speedup). Candidate pairs deduplicated with HashSet; correctness guaranteed - overlapping AABBs always share at least 1 cell.

2D Canvas UX

  • Uniform 2D view background — removed the inner canvas rectangle boundary. The ScrollViewer now receives CanvasBackground from settings; RootCanvas is transparent. The entire 2D window shows one seamless color. Theme fallback values synced. Settings label renamed to "2D view background".

Other

  • All 56 tests pass
  • Installer: 4H-Unfolder-v0.0.3.H-setup.exe (Inno Setup, win-x64, ~48 MB)
  • Portable: 4H-Unfolder-v0.0.3.H-portable.zip (~66 MB)

Installation

Run the installer (-setup.exe) or extract the portable ZIP anywhere and run 4H-Unfolder.exe. No .NET runtime required — fully self-contained win-x64.