Make scheduling benchmark more realistic#5410
Make scheduling benchmark more realistic#5410joseph-gio wants to merge 8 commits intobevyengine:mainfrom
Conversation
alice-i-cecile
left a comment
There was a problem hiding this comment.
Love the constants, love the strategy for defining the graphs, love the increased realism. Eventually I'd be interested in a follow-up PR that adds a method to compute these key statistics on Schedules so we can ask users for usage data.
I think we can make this nicer with code generation macros, and strongly feel that this needs to be explicitly seeded.
Should be great!
| } | ||
|
|
||
| fn my_system<const P: usize, const I: usize>() {} | ||
|
|
There was a problem hiding this comment.
I would like the number of plugins and systems to be pulled out into constants here.
There was a problem hiding this comment.
The problem with this is that, afaik, every single const generic type needs to be explicitly named somewhere. You can't loop over const generics. I can make it prettier with macros, but I don't think it's possible to extract everything into constants.
I can think of a few potential solutions, but they will require re-architecting.
There was a problem hiding this comment.
Hmm, that's surprising 🤔 I'm not familiar enough with the details of macros to know if what I'm asking for is possible. We should see if we can get more expert opinions.
There was a problem hiding this comment.
alice-i-cecile
left a comment
There was a problem hiding this comment.
This has my approval now :) I'd still like to be able to extract out the number of systems / plugins into constants, but I won't block on it in this PR if you can't get it working.
So here's what I've gathered so far.
|
|
Sounds good. We can clean this up more later. |
This reverts commit 8bf7503.
|
Closing this since it's very out of date. If someone wants to update or replicate this, feel free. |
Objective
Solution
Model the benchmarks around plugins, forming groups of systems.
TypeId.