Skip to content

Parallel Query Job, all cores working on the same chunk #37

Answered by friflo
BenChadouteau asked this question in Q&A
Discussion options

You must be logged in to vote

hi,

I tried to reproduce the issue.
When doing this I remembered I had an issue with the Chunk<> indexer.
This has an impact on the usage of transforms[i] and speeds[i] in your code.

This issue is present in 2.2.0 and was fixed in all newer 3.0.0-preview version.

In case you still want to use 2.2.0 you should use the Chunk<>.Span.
The Span is using the start index. The indexer not - which is a bug in 2.2.0.

It was fixed by Engine - ECS: fixed Chunk<> indexer

So I guess you are using 2.2.0. Correct?

If the preview version had the same issue. I need following infos:

Can you log
queryJob.ParallelComponentMultiple
queryJob.MinParallelChunkLength
before calling queryJob.RunParallel();

Also ple…

Replies: 3 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by BenChadouteau
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants