Skip to content

Commit

Permalink
shaders/lut: don't spam LUT update message for dynamic LUTs
Browse files Browse the repository at this point in the history
A LUT marked dynamic is *expected* to change frequently, no need to nag
PL_LOG_DEBUG about it. Drop verbosity in this case.
  • Loading branch information
haasn committed Feb 18, 2023
1 parent 8c2c957 commit 3dd5092
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/shaders/lut.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 3dd5092

Please sign in to comment.