Author Topic: 2.0.7dev performance  (Read 2364 times)

Ecnassianer

  • Sr. Member
  • ****
  • Posts: 126
    • Carpe Chaos
2.0.7dev performance
« on: April 06, 2010, 01:23:17 am »
Man, the more I play with the 2.0.7 dev build, the more I realize how much smoother the animation is on my big books. Performance and stability are some of my greatest concerns in implementing my megazine project, and 2.0.7 really makes a noticeable difference. Good job guys. This is really great

If you wanted to make another pass like the one you just did, I'd love it even more. ;) You can never have too low of system requirements. :)
See my megazine at CarpeChaos.com

globule22

  • Jr. Member
  • **
  • Posts: 40
Re: 2.0.7dev performance
« Reply #1 on: April 06, 2010, 12:48:47 pm »
I have done some comparison tests betwenn 2.0.6 and 2.0.7 on the same book to find the noticeable gap in performance.

I have use this class to monitor memoru usage: http://chargedweb.com/labs/2010/02/19/resourcemonitor-class-as3-0/

With a book containing around 100 pages in spreadpage format, same mz3 for both books, just the swf which is different, compile for Flash 10, tested with Flash 10.0 r45 debug version, not 10.1

With 2.0.7:
I start at 88 Mo. After 10 pages, i am at 97 Mo, and at the end of the book around 167 Mo

With 2.0.6:
I start at 91 Mo. After 10 pages, i am at 92 Mo, and at the end of the book around 95 Mo

Did i miss something?

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: 2.0.7dev performance
« Reply #2 on: April 07, 2010, 07:35:53 pm »
@Ecnassianer: good to hear :)

@globule22: try starting it with the console plugin and trigger garbage collection manually (command is "gc"). It might be that the garbage collector just didn't run yet. But I'm currently in the process of hunting down memory leaks anyway, so if it's caused by one I hope to find it ;) [that said, I already fixed some, so try the latest trunk revision]
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.

globule22

  • Jr. Member
  • **
  • Posts: 40
Re: 2.0.7dev performance
« Reply #3 on: April 08, 2010, 09:57:11 am »
Florian, i have done the same tests in Flash 9 with 2.0.7 rev 336, with a book containing around 100 pages in spreadpage format

I start at 37 Mb. After 10 pages, i am at 43 Mo, and at the end of the book around 44 Mb

GOOD JOB Florian.

Now, i have done the same test with my panorama loader, just for one panorama, and job was done quite fine, i destroy all my objects correctly in my loader when the page is no longer visible, and memory is released, fine, very fine Florian !

I will do some tests this evening in Flash 10, my project need this version because i use a special mouse cursor in my panorama player

Regards
« Last Edit: April 08, 2010, 11:20:45 am by globule22 »

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: 2.0.7dev performance
« Reply #4 on: April 08, 2010, 01:55:17 pm »
Good to hear :)

If it works in 10, too (which I see no reason why it shouldn't), I assume this also resolves this post of yours, right?
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.

globule22

  • Jr. Member
  • **
  • Posts: 40
Re: 2.0.7dev performance
« Reply #5 on: April 08, 2010, 03:42:38 pm »
Humm, i have spoken too quick or i didn't have luck today.

I cannot reproduce the configuration where all is working fine!

I am now with rev 336, compiled in Flash 9, with demo book, and I start at 64 Mb, and at the end i am around 75Mb, it seems that spreadpage up a little mem amount, and finally i come back to 65 Mb, if i jumpt quikcly to first page with First page button.

Retested with my mz3 project, same issue  :-[

globule22

  • Jr. Member
  • **
  • Posts: 40
Re: 2.0.7dev performance
« Reply #6 on: April 09, 2010, 04:15:45 pm »
Florian

Another test today with your 337 revision.

All is working fine, i have tested on my book in the assets directory, and by error without the plugins ;), all is ok, around 70Mb during all the book.

So, i do after compiling with ant the plugins and adding them in my directory test, another test and now i have again this memory accumulation.

After some searching, it seems that without titles plugin, all is ok, did you have a look at this one during your memory issues cleaning process?

UPDATE: issue recreated with Flash 10 on my personal macbook.

I specify that i have for each pages, a bottom bar created with many areas, and so many titles.
« Last Edit: April 10, 2010, 01:23:17 am by globule22 »

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: 2.0.7dev performance
« Reply #7 on: April 10, 2010, 06:58:50 pm »
I didn't get to the plugins until now, but will do testing on those over the next couple of days.
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.

globule22

  • Jr. Member
  • **
  • Posts: 40
Re: 2.0.7dev performance
« Reply #8 on: April 14, 2010, 09:32:57 am »
Done another test today in Flash 9 with rev 346, problem with Titles plugin seems fixed. good work Florian.

But did you change something on title parse with mz3? this code of the demo doesn't work:

Code: [Select]
<area left="140" top="270" width="120" height="26" url="http://megazine.mightypirates.de/download/mz3v2.0.6.7z" overlay="none">
<title lang="en">Download the latest version (2.0.6)</title>
<title lang="de">Neueste Version herunterladen (2.0.6)</title>
</area>

and mine too:

Code: [Select]
<area overlay="none" left="812" top="552" width="22" height="23" url="anchor:26_03_2010" title="26 mars 2010 : Intronisation" />
Regards


globule22

  • Jr. Member
  • **
  • Posts: 40
Re: 2.0.7dev performance
« Reply #9 on: April 14, 2010, 11:13:47 am »
Found a strange issue:

I have this huge pink area sometimes when i open the page containing my panorama engine



Did you change something on swf loading?
« Last Edit: April 14, 2010, 11:17:42 am by globule22 »

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: 2.0.7dev performance
« Reply #10 on: April 14, 2010, 10:03:00 pm »
I'm pretty sure I didn't change anything that has to do with masking (just had a quick look through the logs, too),
so I don't really know what might be causing this. What it is is an element mask not masking anything (I gave them
that color to make sure it'd be obvious if the masks failed). But why they don't mask it... no idea.
Does this only happen on "panorama" pages? Is there any message in the console when this happens?
Also: which revision of 2.0.7 are you using? Could you please test it with the latest one, too?
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.

globule22

  • Jr. Member
  • **
  • Posts: 40
Re: 2.0.7dev performance
« Reply #11 on: April 17, 2010, 05:37:50 pm »
Florian,

in which file did you use this color?

Regards

Florian Nücke

  • κρύα πόδια
  • Administrator
  • Hero Member
  • *****
  • Posts: 1985
  • MegaZine3 Developer
    • MegaZine3
Re: 2.0.7dev performance
« Reply #12 on: April 17, 2010, 07:48:31 pm »
Basically everywhere a mask is created. Just search for FF00FF.
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.

ismaelj

  • Newbie
  • *
  • Posts: 15
Re: 2.0.7dev performance
« Reply #13 on: April 19, 2010, 04:42:14 pm »
I'm seeing the same problem after updating to 2.0.7.

In my book, on an standard text element, if selectable=true the text don't show up when the page is loaded, if you wait for the corner hinting to show, then the text shows right, but when you click on the page the text disappears and if you click in the area where the text is supposed to be, then a pink area appears...

may be related to the bug I reported about the spreadpage corner hinting?

ismaelj

  • Newbie
  • *
  • Posts: 15
Re: 2.0.7dev performance
« Reply #14 on: April 21, 2010, 11:34:06 am »
Another update: I see the same problem on an asul text object that is inside a scrollpane, BUT if I add any filter to the style that I'm applying to the text element, then the problem disappears and the text shows up correctly.

Hope this helps to track down the problem!