bugGnash - The GNU Flash player - Bugs: bug #21782, PlanarityBig5.swf performance

 
 

bug #21782: PlanarityBig5.swf performance

Submitted by:  Sandro Santilli <strk>
Submitted on:  Wed 12 Dec 2007 11:15:43 PM UTC  
 
Category: ActionScriptSeverity: 3 - Normal
Release: NoneStatus: Fixed
Privacy: PublicAssigned to: None
Open/Closed: Closed

Add a New Comment(Rich Markup)
   

You are not logged in

Please log in, so followups can be emailed to you.

 

(Jump to the original submission Jump to the original submission)

Sat 19 Jun 2010 10:31:50 AM UTC, comment #6:

Not a bug any more. It still takes more memory than the pp, but it's not specifically related to this SWF and performance is reasonable.

Benjamin Wolsey <bwy>
Project Member
Thu 09 Jul 2009 09:20:05 AM UTC, comment #5:

I've tried this with levels 40 and 50, and performance seems reasonable. It's much slower than the pp (level 50 completes in about 7 seconds for Gnash, 1 second for the pp), but I haven't profiled to find out why.

The pp goes from 16 to 31MB, Gnash from 24 to 70MB of physical memory when skipping to level 40.

Those levels look really nice, but I haven't tried solving them.

Benjamin Wolsey <bwy>
Project Member
Fri 14 Mar 2008 08:31:37 AM UTC, comment #4:

retried recently (after some of the 'super' fixes and GC cost reduction) skipping to level 33 eats up all memory.
CPU is acceptable (but could also be due to the fact this time
I run with a non-debugging build)

Sandro Santilli <strk>
Project Member
Fri 14 Dec 2007 09:04:33 AM UTC, comment #3:

Confirmed, it's not an infinite loop, just an increased complexity.
I bet the GC has to do with this, see number of global advanceable characters in relation to level number:

20733] 10:02:05: TRACE: 2
20733] 10:02:05: DEBUG: Global instance list grew to 50 entries
20733] 10:02:13: TRACE: 11
20733] 10:02:19: DEBUG: Global instance list grew to 284 entries
20733] 10:02:40: TRACE: 15
20733] 10:03:09: DEBUG: Global instance list grew to 466 entries

Once the screen is rendered (frame 15) CPU is low.
Moving the mouse gets it high (trying to find topmost mouse entity)

Sandro Santilli <strk>
Project Member
Thu 13 Dec 2007 07:55:56 AM UTC, comment #2:

After my last patch for parseInt, I tried with level1 to level15. It works. But it cost about 3 miniutes to entering level15 here.

I guess there's no infinite loop, just that the vm is too slow. It is probably just a performance problem. The higher level you tried, the more complex actions involved.

Zou Lunkai <zoulunkai>
Thu 13 Dec 2007 06:31:05 AM UTC, comment #1:

Have you tried with a lower lever? what about level2 and 3 there?
Does it work?

Zou Lunkai <zoulunkai>
Wed 12 Dec 2007 11:15:43 PM UTC, original submission:

Start the game, hit the right-arrow on lower-left corner.
Enter a level number (I tried 23) then click on "Skip".
CPU goes 100% and GUI becomes unresponsive.

Seems like ActionScript, but might also be some gotoFrame
not sure...

Sandro Santilli <strk>
Project Member

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by bwy (Posted a comment)
  • -unavailable- added by zoulunkai (Posted a comment)
  • -unavailable- added by strk (Submitted the item)
  • -unavailable- added by strk
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 5 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Sat 19 Jun 2010 10:31:50 AM UTCbwyStatusNone=>Fixed
      Open/ClosedOpen=>Closed
    Sun 06 Jan 2008 09:13:43 PM UTCstrkSeverity4 - Important=>3 - Normal
      SummaryPlanarityBig5.swf enters infinite loop=>PlanarityBig5.swf performance
    Wed 12 Dec 2007 11:15:43 PM UTCstrkCarbon-Copy-=>Added zoulunkai

    Back to the top


    Powered by Savane 3.1-cleanup1