branchrust_reboot/main/wire_slacking/optimisationscancel
27 Commits over 0 Days - ∞cph!
Fixed some wire parenting update issues when a single line is attached to multiple doors
Minor WireTool optim: don't run all the reconnect logic when clearing the wire
Fixed doors returning wrong total line anchors count
Fixed a pooling issue with destroyed doors not clearing their line anchors
+ minor code cleanup
▇▍▊▉▇▆▉ ▉▅▅ █▆▌ ▇▆▅▆ ▊▅▆▊▍█ ▆▊▉▍▋ ▄▍▋▋▊: ▅▌▊ █▇▌▆▆ ▆▋ █▄▆▄█ ▄▉▋▉▉ ▉▌█ █▇▌▋ ▆▋█▅█▊▊ ▋█ ▊▋▍▋▍ ▍▇▆ ▄▅██
█▋▉ ▆▅ ▆▄ ▇█▅▄█▄ ▍▉▌
Fixed line anchors fuckery again
Resize the arrays if we're adding more than 18 points to the line (creative mode allows for 999 points)
█▆▊▍▆▆ ▊ ▉▆█▄ ▄▇ ▉▆ ▅█▌▄ ▋▇▅▋▆▋ ▌▉▄▄▋
▍▇▉▇▌ ▊▆▄▌▇▋ ▋▇▍▅▇ ▆▍▍▉▍█▆▆
- █▌▍ ▅▆▇ ▌█▇▄▌▋▋▄█▌ ▆▇▅▊█▇█▋▌▌ ▋▅▆▌ ▅▉▅ ▇▌▄▊ ▅▋█ ▉▇█▆▅▇▉ (▅█▅▇▉ ▆▊▌▅ █▅▆▇▊ ▊▆ █▌ ▇▊█▅█▅▅▉▊▄▄ ▍▅▊█▇ ▉▋▄▉▊▆▉ ▉▋▉█▌█▌▌ ▅▍ █▋▋▄▄)
- ▍▄▅ ▄▊▉▋▅▆▉ ▌▄▄ ▍▅▍▆▄▄ ▍▇▌▊▇▅ ▋▆▍▄▋
Fix insufficient array lengths when dealing with wires > 20 points (not just a creative mode issue, some monuments like airfield have static connections with quite a few points)
NotifyLOD component on hose prefabs
Fixed wire length calculation
▅▄▇▋▆ ▄▌█▉▉▇▊▋▆ ▌██ ▇▇▋▄ -> ▍▆▉▊▍ ▆▉▍▌▄▍▉▉▆▆
▍▌▇▇ ▍▍▇▍▆█▇ ▌▄▄ ▍▉▇▌▇ ▅▌▋ ▄▇▌▆ █▋▉█ ▄▅▄▊▉▉▍▄▋▅▉▇▇
▆▅█ █▉▉▊▅▉ ▌▄▍▌▌▌▆ ▍▍ ▋▍▉▆▉ ▆▄ ▉▄▆▍▍ ▆▅▆▆▌▌▅▍▆ ▋█▋▄▊▊▋ ▉▆█▉▅
▍▌▅▇▄▊▆ █▍██▅▉ ▊▍▋▉▍▄ ▅▍▊▄█▋▅▌▉▇▄ ▌▋▇▋ ▇▇▄▍▌▅▌ ▉▇▇▄▉ (▉▄▋▍▍ ▆█ ▇)
Update line anchor using jobs
▌▆▄▇▅ ▆ ▉█▄▉█ ▉█ ▉▇▆ ▆▆█▄▆▇ ▅▉ ▋▍▄▉█ █▍▋▄ ▅▅▅ ▊▄ ▋▉▆▅█▄▌▌ ▊▌ ▅▇▆ ▊▄▌▇ ▉▄▉▊, ▆▆▍ ▍▉ ▊
▋ ▉▆▇'▆ ▉▅▉ ▍▋▄▍▄▊ ▌▆▅█▅▅▆ ▊▅▌▊ ▄▅█▉ ▆ ▆▅▍█▅ ▇▇ █ ▍▌▅▅ ▄▄▆▊▄ ▌▋▍▄ ▉▌ ▇▇▄▇█ ▋▅▇ ▋▄▊▉▍▍▊▉
merged main into wire_slacking/optimisations
Make sure a job cannot last more than 4 frames, so we can use TempJob allocators
Code cleanup
Don't stall the main thread and apply wire slack job result only when its finished
Removed RendererLOD from wires prefabs, use NotifyLOD instead and hide it in code
Don't update moving wires when hidden
float3 instead of Vector3, moving wires fixes
Bezier.ApplyLineSlack micro optims
Moved wire slack calculation to job system, wip