-
Notifications
You must be signed in to change notification settings - Fork 415
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
[BUG] performance regression #956
Comments
introduced by e9b535d with |
I see. The issue is with |
I can't reproduce it on my laptop with RTX 3070 Ti. e9b535d should not make much difference of performance. The major difference introduced in 2.13.0 is https://github.com/fastfetch-cli/fastfetch/blob/dev/src/detection/gpu/gpu_linux.c#L40-L52 which tries to call the DRM driver of nvidia GPU. It is only used to grab a driver name and version but should not affect performance too. You may try |
I don't think |
I am using nouveau rather than the proprietary drivers. |
How much time does it cost? |
What does |
1-2 seconds. I'm currently on mobile with no computer, so can't give output now. Will do later. |
Really? Is nouveau that slow? |
Anyway, if you can confirm where the problem is, I can cut a hotfix release today. |
I can try to get back to you with the output within an hour from now. Otherwise, will be tomorrow. |
|
Does this patch fix your issue? diff --git a/src/detection/gpu/gpu_linux.c b/src/detection/gpu/gpu_linux.c
index 9387ce4e..5f6e93dd 100644
--- a/src/detection/gpu/gpu_linux.c
+++ b/src/detection/gpu/gpu_linux.c
@@ -70,7 +70,7 @@ static const char* drmDetectDriver(FFGPUResult* gpu, FFstrbuf* pciDir, FFstrbuf*
static bool pciDetectDriver(FFGPUResult* gpu, FFstrbuf* pciDir, FFstrbuf* buffer, FF_MAYBE_UNUSED const char* drmKey)
{
#if FF_HAVE_DRM_H
- if (drmKey)
+ if (drmKey && !ffStrEquals(drmKey, "card1"))
{
drmDetectDriver(gpu, pciDir, buffer, drmKey);
if (gpu->driver.length > 0) return true;
|
yep. the patch resolves it. |
This suggests that nouveau driver is bad |
You could do a workaround or simply a wontfix. |
FYI, prior to turing cards using nouveau will probably be the ones affected, as our cards can use NVK with mesa 24.1+ (which I suspect would have better performance). Anyway, gtg. Ciao. |
The only workaround is that we dont try to call DRM drivers for nouveau. However we dont know if it is nouveau if we dont ask the driver. |
We only ask for driver name and version but nothing else. I didnt know it is that hard to tell who and how old the nouveau driver is. |
[ALPM] upgraded fastfetch (2.12.0-1 -> 2.13.0-1)
[ALPM] upgraded fastfetch (2.13.0-1 -> 2.13.1-1)
Introduced either 2.13.0 or 2.13.1,
fastfetch
can be significantly slower outputting from the GPU line and onward, so I suspect some recent commit regardingGPU (Linux)
(on NVIDIA). It occurs on git as well (59c853f).The text was updated successfully, but these errors were encountered: