Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #7872 Reply

    YOUNG KIL KIM

    HI
    This is swipe speed issue.

    Could you improve speed when swipe in big size pdf?
    When fast swipe left and right, progress bar is shown so long and slowly move to next page.

    Thanks.

    #7897 Reply

    Dr. Plug
    Moderator

    Hi YOUNG KIL KIM,

    Thank you for your interest in the PlugPDF, Now, our engineers are researching to keep for improved speed. But if you want more faster speed, you can change it by using ‘setPreviewQualityCoef’ method in the PropertyManager. If you change it to less than 1, you can more fast swipe because the CPU is being used fewer.

    Thank you,
    Dr. Plug

    #7898 Reply

    YOUNG KIL KIM

    HI
    When fast swipe, can see below log. What’s mean this log?
    05-19 13:35:51.760: E/native(30405): plugpdf.cpp:1141 AndroidBitmap_getInfo Fail: -1

    Thanks.

    #7924 Reply

    YOUNG KIL KIM

    HI
    When called goToPage() method, many GC_FOR_ALLOC freed is called.
    Maybe this is related to performance issue.
    I want to improve a swipe performance speed.

    05-20 09:08:12.923: D/PlugPDF(25346): [DEBUG] Creating Entire View
    05-20 09:08:12.953: D/dalvikvm(25346): GC_FOR_ALLOC freed 177K, 6% free 60426K/63732K, paused 35ms, total 35ms
    05-20 09:08:12.963: D/PlugPDF(25346): [DEBUG] Canceling patch adjustment
    05-20 09:08:12.973: I/Choreographer(25346): Skipped 53 frames! The application may be doing too much work on its main thread.
    05-20 09:08:12.973: D/PlugPDF(25346): [DEBUG] Canceling patch adjustment
    05-20 09:08:12.973: D/PlugPDF(25346): [DEBUG] Cleaning page: 6
    05-20 09:08:12.973: D/PlugPDF(25346): [DEBUG] Clearing patch
    05-20 09:08:12.973: D/PlugPDF(25346): [DEBUG] Canceling patch adjustment
    05-20 09:08:12.973: D/PlugPDF(25346): [DEBUG] Cleaning page: 3
    05-20 09:08:13.003: D/PlugPDF(25346): [DEBUG] adjustPatch called
    05-20 09:08:13.003: D/PlugPDF(25346): [DEBUG] adjustPatch called
    05-20 09:08:13.003: D/PlugPDF(25346): [DEBUG] Creating Patch View
    05-20 09:08:13.003: D/PlugPDF(25346): [DEBUG] Creating Patch Bitmap (921, 1490)
    05-20 09:08:13.033: D/dalvikvm(25346): GC_FOR_ALLOC freed 8968K, 19% free 54557K/66816K, paused 26ms, total 27ms
    05-20 09:08:13.353: D/PlugPDF(25346): [DEBUG] adjustPatch called
    05-20 09:08:13.353: D/PlugPDF(25346): [DEBUG] Creating Patch Bitmap (1080, 1490)
    05-20 09:08:13.393: D/dalvikvm(25346): GC_FOR_ALLOC freed 5423K, 19% free 54568K/66816K, paused 37ms, total 37ms
    05-20 09:08:13.403: I/dalvikvm-heap(25346): Grow heap (frag case) to 61.928MB for 6436816-byte allocation
    05-20 09:08:13.413: D/PlugPDF(25346): [DEBUG] adjustPatch called
    05-20 09:08:13.413: D/PlugPDF(25346): [DEBUG] adjustPatch called

    #7926 Reply

    Dr. Plug
    Moderator

    Hi YOUNG KIL KIM,

    Sorry for late reply. Actually AndroidBitmap_getInfo this message is printed when swiping too fast because of the thread work. But, you can’t ignore it.

    Concerning GC_FOR_ALLOC, It also no problem. It is very small delay but it is needs to our SDK, because it discard that used the bitmap.

    Best Regards,
    Dr. Plug

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Improve swipe speed
Your information: