New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Implemented batch dispatching #147
Conversation
Could the project be an example? As in add it to the examples folder. |
Done! |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for your work! It's already pretty good. I did find a bunch of nits, most of them I created a suggestion for which you can just apply from GitHub.
We still need some tests to cover the new code. The things that definitely need testing are:
- setup is working correctly
- batch with conflicting dependencies does not run in parallel with other systems
- batch without conflicting dependencies does run in parallel with other systems
- fetching works correctly
- dispatching works, and the batch and its systems get executed
Co-Authored-By: Thomas Schaller <torkleyy@gmail.com>
Co-Authored-By: Thomas Schaller <torkleyy@gmail.com>
Co-Authored-By: Thomas Schaller <torkleyy@gmail.com>
Co-Authored-By: Thomas Schaller <torkleyy@gmail.com>
Co-Authored-By: Thomas Schaller <torkleyy@gmail.com>
Co-Authored-By: Thomas Schaller <torkleyy@gmail.com>
Co-Authored-By: Thomas Schaller <torkleyy@gmail.com>
Co-Authored-By: Thomas Schaller <torkleyy@gmail.com>
Co-Authored-By: Thomas Schaller <torkleyy@gmail.com>
@torkleyy I did all the changes that you advised. ThreadPoolAbout the ThreadPool assignment problem that I mentioned you before, I found a solution that seems nice and elegant. I've created a struct, called The result of this addition is that when in amethyst the Application struct create the thread pool and assign it to the main DispatcherBuilder it change the internal part of the wrapper and everyone is automatically updated. To me this seems clear enough but do you think that exist a better way to handle it? TestsI written three tests that demonstrate what you suggested, please let me know if I have to add more. Commit squashDo you want that I squash all this changes to a single commit? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good! There is some stuff I am not sure about as I haven't looked at the use case for this.
@WaDelma I just did a commit to resolve the things that you pointed out |
Co-Authored-By: WaDelma <WaDelma@users.noreply.github.com>
Co-Authored-By: WaDelma <WaDelma@users.noreply.github.com>
Co-Authored-By: WaDelma <WaDelma@users.noreply.github.com>
Co-Authored-By: WaDelma <WaDelma@users.noreply.github.com>
Co-Authored-By: WaDelma <WaDelma@users.noreply.github.com>
Co-Authored-By: WaDelma <WaDelma@users.noreply.github.com>
Co-Authored-By: WaDelma <WaDelma@users.noreply.github.com>
Co-Authored-By: WaDelma <WaDelma@users.noreply.github.com>
Co-Authored-By: WaDelma <WaDelma@users.noreply.github.com>
Co-Authored-By: WaDelma <WaDelma@users.noreply.github.com>
Co-Authored-By: WaDelma <WaDelma@users.noreply.github.com>
Any news for this? |
✌️ jojolepro can now approve this pull request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks, looks good to me!
bors delegate=jojolepro
bors r+ |
147: Implemented batch dispatching r=torkleyy a=AndreaCatania This is the second iteration to implement the Batch dispatching following the feedback received in this PR: #144 (Was easier for me redo everything rather change it) This is the project to test this feature: [shred_test.zip](https://github.com/slide-rs/shred/files/3363344/shred_test.zip) Co-authored-by: Andrea Catania <info@andreacatania.com>
Build succeeded |
Guys, thank you a lot! |
I would like to update shred in Amethyst and so use this new feature. |
I'd just like to precise that I reviewed only half of the PR yesterday (lack of time), which is why I didn't add an "accept" review thingy. However, it as been reviewed by 2 people, so I would tend to think that I would not have found more than 1-2 nitpicks in the second half. |
@torkleyy, @Jojolepro any idea about how to create a new version in crates.io? |
It depends when torkleyy actually wants to release. I'll ask him. In the meantime, you can target the git repo using cargo using:
For that, you'll need to fork specs and update that Cargo.toml file too so that it targets this repo. |
@Jojolepro Thanks for the advice! I wanted to avoid it but that's ok, I can continue to work on phythyst now. |
This is the second iteration to implement the Batch dispatching following the feedback received in this PR: #144 (Was easier for me redo everything rather change it)
This is the project to test this feature:
shred_test.zip