Add RenderScheduleOrder resource to allow for RenderApp Schedule changes#23513
Add RenderScheduleOrder resource to allow for RenderApp Schedule changes#23513alice-i-cecile merged 6 commits intobevyengine:mainfrom
RenderScheduleOrder resource to allow for RenderApp Schedule changes#23513Conversation
4530c9f to
5560bd6
Compare
5560bd6 to
fdf7e9d
Compare
|
I'm not sure I understand the rationale well enough here. Can you restate the problem we're trying to solve for me using more words? |
|
So, I don't think this is the right approach. You can do this in a renderstartup system: just check if your resource is already initialized, and only do so if it hasn't been. The render world is never wiped, so you can store that state downstream and we don't need a RenderStartup change to accomodate this. Am i missing something? |
|
Hmm okay I can be convinced on that, but I still need the |
PreRenderStartup schedule and RenderMainScheduleOrder resourceRenderMainScheduleOrder resource to allow for RenderApp Schedule changes
|
Okay so this is much simpler now - this follows the same as the main world Main schedule phases (see |
kfc35
left a comment
There was a problem hiding this comment.
I don’t have any blocking comments
|
I like the new direction much better here. |
RenderMainScheduleOrder resource to allow for RenderApp Schedule changesRenderScheduleOrder resource to allow for RenderApp Schedule changes
| } | ||
|
|
||
| fn run_render_schedule(world: &mut World) { | ||
| world.run_schedule(Render); |
There was a problem hiding this comment.
nit: The name of this function should probably be updated
Objective
MainScheduleOrderresourceschedule.graphendpoint #23452 )Solution
RenderScheduleOrderresource that allows for ordering ofRenderschedulesTesting