From bbbc5f6e6c72835e96f1330822f83f76efdef953 Mon Sep 17 00:00:00 2001 From: kd-11 Date: Thu, 1 Jun 2023 02:59:10 +0300 Subject: [PATCH] rsx: Write a warning to the log if we decide to collapse surfaces to reduce VRAM usage. --- rpcs3/Emu/RSX/Common/surface_store.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/rpcs3/Emu/RSX/Common/surface_store.h b/rpcs3/Emu/RSX/Common/surface_store.h index 63f2e185f9..305c917860 100644 --- a/rpcs3/Emu/RSX/Common/surface_store.h +++ b/rpcs3/Emu/RSX/Common/surface_store.h @@ -1448,6 +1448,9 @@ namespace rsx { pre_task_callback(cmd); + rsx_log.warning("[PERFORMANCE WARNING] Invalidated resource pool has exceeded the desired limit. A trim will now be attempted. Current=%u, Limit=%u", + invalidated_resources.size(), max_invalidated_resources_count); + // Check invalidated resources as they can have long dependency chains trim_invalidated_resources(cmd, memory_pressure);