-
-
Notifications
You must be signed in to change notification settings - Fork 118
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
Laggy strokes #179
Comments
I haven't had the chance to replicate this because I'm home for the holidays. Please can you try this beta apk in Build #98 when it's finished building? |
Reducing the history size seems to have reduced the lag a bit. But it still gets quite laggy after drawing a log of strokes. |
It gets laggy when you draw on an image, while there's no lag on the white space next to the image. It does look like there's something wrong with rendering strokes. |
For future reference, I've made this file with tons of strokes and two pictures. |
Update: Lag has been reduced quite a lot with 66b3fa0 If any of you want to try this out before the next release, download an apk from here |
Is there a way to open .sbn files on android at the moment? |
Not yet, see #196 |
@FoilCan Is lag still an issue in the latest versions? |
untitled2.mp4It is considerably better in the new versions, but it is still quite laggy when the whole page is filled with strokes. (attached video, recorded on v0.9.4) Also the "All notes" interface is laggy when scrolling as well as when opening a note. |
With v. 0.9.3 (F-Droid 9030, in case it matters) I do experience this a lot. My tablet is not very modern (Exynos 7870 Octa CPU from 2016) and after 10 pages or so of notes - not even very full - the lag (to strokes, but also to the UI, when waiting for a stroke to appear) becomes heavy. Notice that
|
It looks like this may be an upstream issue. There's lots of issues in the flutter repo but this one seems to be the most active: Go ahead and give it a thumbs up to bring attention to it |
I honestly do not know how other Android users actually are using the app. I am really trying hard since I want to support this project, very much like the vision of this project, and really like every aspect of the app, except the laggyness of the strokes. I am still using the application, but the laggyness is not manageable. Sometimes, strokes take up to 2 or 5 seconds to display. Is there anything what can be done? I already gave the upstream issue a thumbs up, but every day I keep asking myself whether I keep using it or not, if it is not fixed. I am really hoping the upstream issue will be fixed any time soon! |
Most of the time, lags remain manageable in my notes. But when they don't, the only "solution" I found is to continue in a new note... |
Hm...yeah I tried that too, but it is difficult to keep track and organise if you have to open a new note after every full page. But thank you very much for your response! |
I do notice the sluggishness on Saber 0.11.3 (F-Droid build) on my Samsung Tab S6 Lite, also on Lineage OS, especially in comparison to a very old app https://f-droid.org/en/packages/com.write.Quill/ I am not sure whether it is relevant (for example, because of using the same library). I also encounter the sluggishness in Xournal++. |
Still, I have the same Issue with v 0.12.0 from Google Play or the AppImage. |
I forgot to mention that Xournal++ is on Android, not laptop: https://f-droid.org/packages/online.xournal.mobile/ |
The Impeller backend is currently only available in Saber for iOS. I'm not really able to reproduce these lags anymore, but then again I have fairly new devices. If anyone has an older iPad/iPhone, please can they test the performance on there? |
@FoilCan Please can you try re-recording this scenario on the latest version? |
Strokes are still very laggy in my case. I use a Samsung Galaxy Tab S6 (not the lite version - so more powerful) which is neither too old... On the following video you can see the pointer of the pen and the lagginess! Lagging.movDevice: Samsung Galaxy Tab S6 |
What about (potentially) experimental versions mentioned in https://docs.flutter.dev/perf/impeller#android |
I've tried it and it's pretty unusable in its current pre-preview state |
The lags seem to have improved when it comes to writing responsiveness (was not able to reproduce laggy behavior), erasing however seems to still be laggy or perhaps it became laggy, since I do not remember it being laggy. Saber version: 0.12.8 (FOSS) untitled.mp4 |
The lags for writing is still reproducible on 0.12.7 (F-Droid), but I have to write many pages from scratch to reproduce it, and it seems to be improved. However, if I write on a new page of an existing notebook (7 pages), the lag is still significant. |
I may have been able to fix this just now in de82220 |
I do not know how you managed to achieve it but writing and erasing works much smoother now, almost without any lag! I will test it and report here. The version I am using is 0.12.9 on Android. Keep up the good work!! |
The lag is much improved but still reproducible when I continuously write a lot (which happens when I take notes for a class, say) in the latest build. |
True. I can confirm that. As soon as I have more information on that I will post again. |
Apparently, there is some movement going on in the upstream issue. I do not know @adil192 whether your are following that or not. Unfortunately, I am not skilled enough to evaluate whether it is of use for this app or not, it may be worth having a look at! |
My observation is that, the lag seems to be significant right after (not during) an autosave. The latest version has much more indications, and I find that, right after that the top left save button vanishes with a rotating circle which also vanishes (which seems to indicate that an autosave is finished), there is a 1-2 second lag. This can also be triggered manually as follows:
As far as I observe, the stroke is not laggy when the icon is rotating (which seems to indicate that it is saving), but after that, it becomes laggy (and after the stuck, seemingly the canvas is refreshed). |
Thanks. It is probably closely related to the synchronization. When I disable that, I do not see lags (but I did not test extensively). Is it possible to synchronize in background (by, say, keeping a memory copy during the autosave)? |
Well it's already running in the background. The problem is that the encryption blocks the main thread, which the commit tries to fix |
After taking notes for two weeks, I confirm that the lag is improved, but still happens occasionally (and now I do not have a robust way to reproduce it). I still suspect that it is related to the computational overhead of encryption. PS: seemingly this happens more frequently when there are more than 10 pages, say. |
Sometimes it is extremely laggy. It seems to be the case when there is no Internet connection. Not sure whether it is a newly introduced bug. |
I seem to have lag on some parts of my notes too on my ipad (pro 2018). I have attached my .sbn2 file and a video for reference Rpreplay.Final1696496258.mp4 |
Yes that's one of the objectives in my university project. It'll be done soon :) |
Describe the bug
Writing using S-pen get laggy (the strokes appear with delay) after writing certain amount of strokes. It is not so annoying at first, but quickly gets quite bad.
To Reproduce
e.g. Try to solve some problem with matrices (which obviously requires a lot of strokes).
Device (please complete the following information):
P.S. Love the app, keep up the good work.
The text was updated successfully, but these errors were encountered: