From 3dd509238e41b4d2c5ae384cc26d5f881d043f53 Mon Sep 17 00:00:00 2001 From: Niklas Haas Date: Sat, 18 Feb 2023 14:06:23 +0100 Subject: [PATCH] shaders/lut: don't spam LUT update message for dynamic LUTs A LUT marked dynamic is *expected* to change frequently, no need to nag PL_LOG_DEBUG about it. Drop verbosity in this case. --- src/shaders/lut.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/shaders/lut.c b/src/shaders/lut.c index c9de2f63..ab08c8ba 100644 --- a/src/shaders/lut.c +++ b/src/shaders/lut.c @@ -460,7 +460,9 @@ next_dim: ; // `continue` out of the inner loop update |= method != lut->method; if (update) { - PL_DEBUG(sh, "LUT cache invalidated, regenerating.."); + PL_MSG(sh, params->dynamic ? PL_LOG_TRACE : PL_LOG_DEBUG, + "LUT cache invalidated, regenerating.."); + size_t buf_size = size * params->comps * pl_var_type_size(vartype); tmp = pl_zalloc(NULL, buf_size); params->fill(tmp, params);