rsx: Avoid calling get_system_time() every draw call

This commit is contained in:
kd-11 2021-09-17 22:59:37 +03:00 committed by kd-11
parent 3e09b97f58
commit 6781eb7c76
3 changed files with 3 additions and 3 deletions

View file

@ -235,7 +235,7 @@ namespace gl
m_fence.reset(); m_fence.reset();
synchronized = true; synchronized = true;
sync_timestamp = get_system_time(); sync_timestamp = rsx::get_shared_tag();
} }
void copy_texture(gl::command_context& cmd, bool miss) void copy_texture(gl::command_context& cmd, bool miss)

View file

@ -513,7 +513,7 @@ namespace rsx
method_registers.current_draw_clause.post_execute_cleanup(); method_registers.current_draw_clause.post_execute_cleanup();
m_graphics_state |= rsx::pipeline_state::framebuffer_reads_dirty; m_graphics_state |= rsx::pipeline_state::framebuffer_reads_dirty;
ROP_sync_timestamp = get_system_time(); ROP_sync_timestamp = rsx::get_shared_tag();
for (auto & push_buf : vertex_push_buffers) for (auto & push_buf : vertex_push_buffers)
{ {

View file

@ -160,7 +160,7 @@ namespace vk
} }
synchronized = true; synchronized = true;
sync_timestamp = get_system_time(); sync_timestamp = rsx::get_shared_tag();
} }
void texture_cache::on_section_destroyed(cached_texture_section& tex) void texture_cache::on_section_destroyed(cached_texture_section& tex)