oppia / oppia-android

A free, online & offline learning platform to make quality education accessible for all.
https://www.oppia.org
Apache License 2.0
320 stars 521 forks source link

SVG-heavy screens are laggy #2975

Open BenHenning opened 3 years ago

BenHenning commented 3 years ago

Describe the bug Scrolling up/down on screens that have a lot of vector-based images can be slow on lower-end devices.

To Reproduce Steps to reproduce the behavior:

  1. Open the alpha version of the app (debug build)
  2. Play through the beginning of 'Comparing Numbers' lesson in 'Place Values' until reaching the state starting with: "But, what if the two numbers have the same number of places?" question (this question has an image in the content description and several larger images in the item selection
  3. Scroll up/down in the state quickly
  4. Observe lag

Expected behavior The scrolling should be smooth. We may need to perform bitmap rendering & caching for pictures to avoid re-drawing them; this will likely be faster at the cost of a bit more memory consumption.

Screenshots N/A

Device

Additional context This was found during alpha MR2 testing.

jonathanalvares9009 commented 3 years ago

Can I work on this issue @BenHenning ?

rt4914 commented 3 years ago

@jonathanalvares9009 I think it cannot be assigned to you as it will need alpha content for which you won't have access.

jonathanalvares9009 commented 3 years ago

okay @rt4914