Delay when switching tools
Describe the bug
Every time when I switch tools, it appear to be a 1-2s delay. It only appears when GPU is not being used by any other programs.
To Reproduce
- Ensure the computer has an GPU, even an Integrated Graphics.
- Ensure the GPU is not being used by any other program
- Turn on
Pen Soundsoption - Open renote and switch tools.
Expected behavior
switch the tools immediately when GPU is not being used.
Console Output
Since I'm using Windows and have no Linux device, sorry for not providing this.
Screenshots
No GPU using: https://oss.flt6.top/tmp/0421-noGPU.mp4 Using GPU: https://oss.flt6.top/tmp/0421-GPU.mp4
Desktop (please complete the following information):
- OS: Windows 10 22H2
- App Version: Renote V0.12.0
- Installation Source: Github release
- Desktop Environment: -
- Display Server: -
- Input Source: Mouse and Keyboard (can reproduce with tablet)
Additional context
Seemed to be the same issue as #1236
Hello,
Does it happen when using the keyboard shortcut to change tools? Can you update the video links are these are not working (note: you can upload the video directly in the github issue as well)
It seems to be more of a gtk issue than a rnote one (though I can release a modified version with debug prints to verify where the issue/delay is)
Do you happen to have a nividia card as #1236 ? Or a igpu/gpu combo ? I thought I could try to reproduce this (now that I have added details) but I don't seem to be able to on my device (even while following the instructions) so this might be device/gpu-specific.
The only similar issue I can find on the gtk's gitlab page is https://gitlab.gnome.org/GNOME/gtk/-/issues/7473 (so it's not entirely unreasonable this comes from gtk, all the more so as it seems gpu related)
Related to #1236
Sorry for trouble you. My network is limited when editing this issue, and that's why I didn't use Github upload.
noGPU: https://github.com/user-attachments/assets/2b602ea6-d570-47e4-8f0f-b084c33ba71f GPU: https://github.com/user-attachments/assets/02eb7a83-0696-4294-a035-f101c3b04b0c
This issue can be reproduce with Intel(R) Iris(R) Xe Graphics, just a integrated graphics. Nearly every method to switch can reproduce this issue, with mouse, with keyboard, with tablet. Note that Chrome itself is using graphics card.
After further testing, I found that the issue is only triggered when the _Pen Sounds(option 手写笔音效 in Chinese) option is enabled. At the same time, I noticed that GPU usage doesn't seem to be the root cause, as sometimes the issue is triggered even when the GPU is being used. Specifically, I observed that when Bandicam is running, videos are played via ffmplay, videos are played via PotPlayer, or in certain cases, when Chrome is running, the issue disappears.
Hello, gonna close in favor of the newly opened #1523 issue. I can at least reproduce the issue that the pen sounds don't activate. Hopefully this is the reason for the lag