Skip to content

Commit 7bdb89d

Browse files
committed
Add exception for generates to run alone
1 parent 336023f commit 7bdb89d

File tree

1 file changed

+18
-0
lines changed

1 file changed

+18
-0
lines changed

rt_entt_codegen/shared/parallel.cc

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,24 @@ auto loop_iterator(
129129
auto sys_like_id = *iterator;
130130
auto capabilities = ecsact::meta::system_capabilities(sys_like_id);
131131

132+
auto generate_ids = ecsact::meta::get_system_generates_ids(sys_like_id);
133+
134+
if(!generate_ids.empty()) {
135+
if(!parallel_system_list.empty()) {
136+
parallel_system_cluster.push_back(parallel_system_list);
137+
}
138+
139+
parallel_system_cluster.push_back(
140+
std::vector<ecsact_system_like_id>{sys_like_id}
141+
);
142+
loop_iterator(
143+
system_list,
144+
std::next(iterator, 1),
145+
parallel_system_cluster
146+
);
147+
return;
148+
}
149+
132150
for(const auto [comp_id, capability] : capabilities) {
133151
auto cpp_name = decl_full_name(comp_id);
134152
if(!is_capability_safe(capability)) {

0 commit comments

Comments
 (0)