Skip to content
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

Writing becomes laggy in longer notes #472

Closed
m0byn opened this issue Mar 15, 2023 · 4 comments
Closed

Writing becomes laggy in longer notes #472

m0byn opened this issue Mar 15, 2023 · 4 comments
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@m0byn
Copy link

m0byn commented Mar 15, 2023

Describe the bug
I am using the S-Pen for taking notes on my Samsung Tablet. On new and empty notes, everything works very well and smoothly. Then, after writing some pages, i.e. no fresh notes but longer ones, writing becomes laggy and starts getting annoying at some point! Please see the two screen recordings below.

To Reproduce
Steps to reproduce the behavior:

  1. Go to 'new note'
  2. Write several pages
  3. See how writing becomes more laggy

Expected behavior
No lagging as it is when opening a new note.

Screenshots

  1. Lagging (longer notes):
    https://user-images.githubusercontent.com/33026003/225301529-f93325b4-82e8-4a94-8f18-84f3d2b43ffe.mp4

  2. Not lagging (new note):
    https://user-images.githubusercontent.com/33026003/225301546-6fc4910d-8311-4252-8c28-20bd388ecb78.mp4

Device (please complete the following information):

  • Device: Samsung Galaxy Tab S4
  • OS: LineageOS 20 (Android 13)
  • Version: v0.9.8

I am happy to share any additional information necessary to solve the issue!

@m0byn m0byn added the bug Something isn't working label Mar 15, 2023
@WasteOfO2
Copy link

WasteOfO2 commented Mar 15, 2023

I have noticed the same thing, I was planning on creating an issue but ig u did it first :p

I think this might have something to do with Saber perhaps not supporting Hardware Acceleration? Ram doesnt seem to be an issue.

Screenshot_20230314-232836_Settings
Screenshot_20230314-232828_Settings

Notice how Saber doesn't use GPU

Android does have support for this, not 100% sure about on Flutter.

Android wiki for hardware acceleration

Flutter wiki for rendering performance

To test my theory, I did the following:

  1. Forced 4X MSAA in dev options --> Hardware Accelerated Rendering
  2. Disbaled HW overlays (forces GPU to composite screens) in dev options --> Hardware Accelerated Rendering

Now, to check whether Saber actually uses hardware rendering, I did:

  1. Show View Updates in dev options

This option starts flashing all the windows that use GPU rendering in red colour (See videos)

screen-20230315-184613.mp4
screen-20230315-185008.mp4

Note: The lag may be exaggerated as I am screen recording, to be as representable of the situation to the issue as possible, I did not enable pointer location.

For reference, I also compared with the browser to check whether this is Saber specific.

So with this I can actually conclude that Saber uses software rendering, which is not efficient.

Mobile devices are affected disproportionately, as they are lower power compared to desktop/laptop counterparts.

I cannot confirm whether this issue exists on desktop OSs.

I am not 100% sure whether this is the actual culprit, but this is my best guess as for what actually be taking place.

Enabling HWA would also make it possible to add videos to notes, if that is ever planned or brought up.

@adil192 please do look into this.

@adil192
Copy link
Member

adil192 commented Mar 15, 2023

Closing as a duplicate of #179

@adil192 adil192 closed this as not planned Won't fix, can't repro, duplicate, stale Mar 15, 2023
@adil192 adil192 added the duplicate This issue or pull request already exists label Mar 15, 2023
@Iey4iej3
Copy link

I have noticed the same thing, I was planning on creating an issue but ig u did it first :p

I think this might have something to do with Saber perhaps not supporting Hardware Acceleration? Ram doesnt seem to be an issue.

Screenshot_20230314-232836_Settings Screenshot_20230314-232828_Settings

Notice how Saber doesn't use GPU

I tried the same for Quill (https://f-droid.org/en/packages/com.write.Quill/) but I do not even see memory usage of it (but I did not do a very long test). Is that using GPU?

@Iey4iej3
Copy link

After a relatively heavy use of Quill, I now see it, and it does not use GPU either. Maybe the hardware acceleration is not the key to the sluggishness.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

4 participants