From 4ee4dfbafed28fa82c13312a64825334dd7a756d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?L=C3=AA=20H=C3=A0n=20Minh=20Khang?= Date: Mon, 8 Jan 2024 00:27:57 -0500 Subject: [PATCH] add missing capture skip non gameplay condition (#91) --- src/hooks/engine.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/hooks/engine.rs b/src/hooks/engine.rs index f542767..cdf3380 100644 --- a/src/hooks/engine.rs +++ b/src/hooks/engine.rs @@ -2274,7 +2274,9 @@ pub mod exported { }; if rv != 0 { - capture::time_passed(marker); + if capture_skip_non_gameplay::should_record_current_frame(marker) { + capture::time_passed(marker); + } tas_optimizer::update_client_connection_condition(marker); tas_optimizer::maybe_receive_messages_from_remote_server(marker);