Skip to content

Commit 834e888

Browse files
committed
Refactor wave simulation for performance optimizations and enhance obstacle handling also change to 9-point Laplacian
- from 5 to 9-point Laplacian - sin() LUT - Double-buffer with index toggle - Branchless obstacles: Multiplier grid eliminates branch mispredictions - Core/Edge split: SIMD-friendly inner loop + bounds-checked edge ring - Render decoupling: Physics substeps run independently from 60Hz rendering
1 parent eaecf42 commit 834e888

3 files changed

Lines changed: 365 additions & 177 deletions

File tree

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "symulacja_fali"
3-
version = "1.1.2-beta"
3+
version = "1.1.3-beta"
44
edition = "2024"
55

66
[dependencies]
@@ -14,3 +14,8 @@ rfd = "0.17.2"
1414

1515
[target.'cfg(windows)'.dependencies]
1616
windows = { version = "0.62.2", features = ["Win32_System_ProcessStatus", "Win32_System_Threading", "Win32_Foundation"] }
17+
18+
[profile.dev]
19+
opt-level = 3
20+
lto = true
21+
codegen-units = 1

0 commit comments

Comments
 (0)