Author Topic: Page Flip Optimisation  (Read 1587 times)

Gigi

  • Newbie
  • *
  • Posts: 1
Page Flip Optimisation
« on: October 22, 2009, 08:54:01 am »
Hi, I just tried this engine, it seems to have all the features I need, that's great.

However there is a serious issue when turning swf pages: I created 2 flipbooks to test, one with swf pages and the exact same one with jpeg pages. All pages have the same width and height.

I need to enable the zooming option so I have to go for the swf version which always stays sharp, and is faster to download of course.

The problem with this swf version is that it's very jerky when the pages are turning, on the other hand the jpeg version runs really smoothly. I saw other posts reporting huge CPU loading while dragging or turning the pages, I guess it's the same issue here and it's not only related to the size of the page (because the jpegs work well).

A solution to this issue might be to convert all the visible displayObjects to bitmaps. When pages are turning only the bitmaps are used (the movieclips are removed from the display list), then swap back the bitmaps and displayObjects when the animations are complete. So It would maybe turn faster (like the jpeg version), and still be sharp when we zoom in the page.

I hope this suggestion helps.
That's a great project, nice job.

Thanks


Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: Page Flip Optimisation
« Reply #1 on: October 22, 2009, 11:04:11 am »
Have a look at the page@buffer property, which does just that (convert to Bitmap while turning), or even at img@rasterize which can be used to just convert a loaded SWF to Bitmap after it's loaded.
For the Snark was a Boojum, you see.

Before you ask a question
          After you get an answer
  • please document your problem with the answer in the Project Wiki. (e.g. in the FAQs)
  • help others out if you can, by answering their questions on the forum.