Merge pull request #74269 from clayjohn/RD-more-timestamps
Add a few more rendering timestamps
This commit is contained in:
commit
61d2c85511
|
@ -1972,8 +1972,10 @@ void RenderForwardClustered::_render_scene(RenderDataRD *p_render_data, const Co
|
|||
RD::get_singleton()->draw_list_end();
|
||||
RD::get_singleton()->draw_command_end_label();
|
||||
}
|
||||
if (rb->get_msaa_3d() != RS::VIEWPORT_MSAA_DISABLED) {
|
||||
RENDER_TIMESTAMP("Resolve MSAA");
|
||||
|
||||
if (!can_continue_color && rb->get_msaa_3d() != RS::VIEWPORT_MSAA_DISABLED) {
|
||||
if (!can_continue_color) {
|
||||
// Handle views individual, might want to look at rewriting our resolve to do both layers in one pass.
|
||||
for (uint32_t v = 0; v < rb->get_view_count(); v++) {
|
||||
RD::get_singleton()->texture_resolve_multisample(rb_data->get_color_msaa(v), rb->get_internal_texture(v));
|
||||
|
@ -1985,11 +1987,12 @@ void RenderForwardClustered::_render_scene(RenderDataRD *p_render_data, const Co
|
|||
}
|
||||
}
|
||||
|
||||
if (!can_continue_depth && rb->get_msaa_3d() != RS::VIEWPORT_MSAA_DISABLED) {
|
||||
if (!can_continue_depth) {
|
||||
for (uint32_t v = 0; v < rb->get_view_count(); v++) {
|
||||
resolve_effects->resolve_depth(rb_data->get_depth_msaa(v), rb->get_depth_texture(v), rb->get_internal_size(), texture_multisamples[rb->get_msaa_3d()]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (using_separate_specular) {
|
||||
if (using_sss) {
|
||||
|
@ -2016,11 +2019,15 @@ void RenderForwardClustered::_render_scene(RenderDataRD *p_render_data, const Co
|
|||
}
|
||||
|
||||
if (scene_state.used_screen_texture) {
|
||||
RENDER_TIMESTAMP("Copy Screen Texture");
|
||||
|
||||
// Copy screen texture to backbuffer so we can read from it
|
||||
_render_buffers_copy_screen_texture(p_render_data);
|
||||
}
|
||||
|
||||
if (scene_state.used_depth_texture) {
|
||||
RENDER_TIMESTAMP("Copy Depth Texture");
|
||||
|
||||
// Copy depth texture to backbuffer so we can read from it
|
||||
_render_buffers_copy_depth_texture(p_render_data);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue