-
Notifications
You must be signed in to change notification settings - Fork 3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Revert "vo_gpu: remove --scaler-lut-size" #13291
base: master
Are you sure you want to change the base?
Conversation
This reverts commit 44cf628.
Download the artifacts for this pull request: |
The default should probably be 2^8 for the baseline and set to 2^6 for profile=fast instead. Based on some benchmarks done on an 11th gen Intel NUC iirc and my own 13th gen iGPU, the difference was insignificant which is why it was hardcoded to 8 in the first place. It's possible though that this matters for ancient iGPUs. |
It'd help if you described what "your machine" looks like. |
From the linked issue:
|
That's not totally ancient so I think bringing back the option makes sense. |
+1 |
This doesn't make sense. |
Yeah, sorry I forgot about that. Just bringing it back and defaulting to 8 is good enough then. |
Since we are talking about polar scalers here, I wonder if it is related to https://code.videolan.org/videolan/libplacebo/-/issues/310 on older Intel iGPU noncompute version can be over 3 times as fast, and on your gpu the difference may be even higher. @hegdenischay: would you mind doing some benchmarks, just so we have whole picture? |
It's not far-fetched that someone would start with |
It is not, but in the same time you can say the same about many other options and adding dummy options to profile only bloat the profile itself. Also this is related to some over decade old gpu. |
Hi, sorry for not commenting earlier. Was kinda swamped at work. I'm mainly interested in bringing it back as an option, since I currently can't use this scaler without messing up the video. The part about adding it to I don't mind running benchmarks. |
The relevant parts (vulkaninfo says my GPU is a HSW GT2):
I have also attached a full log: I'm not sure why |
Interesting, makes it little bit more complex to handle if we were to "smartly" enable compute shader. Just out of curiosity, what is the performance on this benchmark when you reduce the size. (can also try 128 for completeness) diff --git a/src/shaders/sampling.c b/src/shaders/sampling.c
index fc10f80b..e754ea00 100644
--- a/src/shaders/sampling.c
+++ b/src/shaders/sampling.c
@@ -559,7 +559,7 @@ struct sh_sampler_obj {
pl_shader_obj pass2; // for pl_shader_sample_ortho
};
-#define SCALER_LUT_SIZE 256
+#define SCALER_LUT_SIZE 64
#define SCALER_LUT_CUTOFF 1e-3f
static void sh_sampler_uninit(pl_gpu gpu, void *ptr)
|
with
with
|
This reverts commit 44cf628.
Fixes issue: #13273
scaler-lut-size=8
causes a performance regression on my machine, therefore it'd be a good idea to keep the default at6
and add it toprofile=high-quality