-
Notifications
You must be signed in to change notification settings - Fork 449
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
Delay in all tools #1196
Comments
Good morning. Tomorrow I will close the request, since I see that it does not happen to anyone else nor does it seem to have a solution. |
There are two delays. The cursor is a little behind and the stroke is a little further behind. This depends on the pen settings. If I change the preview circle size, the delay occurs. test.mp4Using default settings the delay is so slight that it doesn't bother me. But with the smaller viewing circle, it feels wobbly. I couldn't clearly determine whether the green line is also more delayed. But it certainly feels that way. Overall, it doesn't feel good in this setting. That's why I don't use a smaller preview circle, like I otherwise would. I also notice a different behavior when I deactivate the pressure sensitivity. However, it's not entirely clear whether perception isn't also playing tricks on me. Because with the settings that I perceive as delayed, the pointer is not displayed during the writing process. Perhaps the delay is less noticeable if the cursor is also whizzing around under the tip of the pen. I have noticed delays on my ugee U1600, which I tend to link to the hardware and the driver. This possibility also exists and should not be ruled out as a cause in individual cases. However, I made the video on my Cintiq 22. The phenomenon is real and it is OpenBoard. So you shouldn't close the issue. But perhaps it would be helpful if you could experiment a little with the settings and describe the conditions for the delay in more detail. As a user without the ability to contribute to the code, I am very grateful for the work that is being done here. The least I can do is provide as much information as possible. |
I did some experiments and found:
But less frequent repainting would only be a workaround. I do not see that the CPU limits the repaints with Qt 6, so I wonder what else might cause this. Any ideas? |
I tried the Qt5 Version of the deb-package that you made for me to test a few days ago. I can confirm your findings on my system. The lag is less with Qt5 but it is still annoying. I know somebody to ask. But he might be pissed a little. I have to make a phone call. I'll report back. |
Good afternoon. |
I was now measuring the time between
So the time is about 5 times longer with Qt 6, which leads to larger lags. Now I'm searching for some way to adjust the interval for Qt 6.... Edit: I get the fast events in Qt 6 if I disable any GUI update in the |
Next step: I created a minimal program for drawing on a I also removed the call to That means the longer times are not a general property of Qt 6, but is affected by what we do in the event handler. And: it is not a general problem to do some drawing in the event handler. It seems to be something specific. Further finding: The mouse events occur more often (every 16 ms) when I do not |
IMHO, the first delay (cursor behind the pen) is out of control of OpenBoard. The cross cursor is a system cursor and is not controlled by OpenBoard. It is drawn by the operating system just like any other cursor. If this is behind the pen, then we cannot do anything about it. The second delay (stroke or preview circle behind the cursor) is caused by the low repetition rate of MouseMoveEvents as described in my previous comment. The small circle is painted by OpenBoard, so it is already affected by this. The stroke or the small circle should have the same delay behind the pen. I'm still searching for the cause of the low frequency of the mouse move events, but currently have no convincing idea where I can look further. |
Describe the error
OS :
Windows
- bug occurs with :
- not checked :
Linux
`macOSThe occurs on several computers
delay.in.all.tools.mp4
The text was updated successfully, but these errors were encountered: