@woosh/meep-engine 2.119.120 → 2.119.121
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -78,7 +78,7 @@ export function ebvh_nodes_sort_sah_local4(
|
|
|
78
78
|
|
|
79
79
|
if (cost0 <= cost1 && cost0 <= cost2) {
|
|
80
80
|
// no change
|
|
81
|
-
post_swap = cost_cd
|
|
81
|
+
post_swap = cost_cd > cost_ab;
|
|
82
82
|
|
|
83
83
|
} else if (cost1 <= cost2) {
|
|
84
84
|
// swap C and B
|
|
@@ -90,7 +90,7 @@ export function ebvh_nodes_sort_sah_local4(
|
|
|
90
90
|
|
|
91
91
|
swap_count++;
|
|
92
92
|
|
|
93
|
-
post_swap = cost_bd
|
|
93
|
+
post_swap = cost_bd > cost_ac;
|
|
94
94
|
} else {
|
|
95
95
|
// swap B and D
|
|
96
96
|
nodes[index_b] = node_d;
|
|
@@ -101,7 +101,7 @@ export function ebvh_nodes_sort_sah_local4(
|
|
|
101
101
|
|
|
102
102
|
swap_count++;
|
|
103
103
|
|
|
104
|
-
post_swap = cost_cb
|
|
104
|
+
post_swap = cost_cb > cost_ad;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
if (post_swap) {
|