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

 
 

bug #21782: PlanarityBig5.swf performance

Submitter:  Sandro Santilli <strk>
Submitted:  Wed 12 Dec 2007 11:15:43 PM UTC
   
 
Category:  ActionScript Severity:  3 - Normal
Release:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed
* Mandatory Fields

Add a New Comment Rich Markup
   

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>
Group 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>
Group 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>
Group 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>
Group 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>
Group Member

 

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

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

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

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 5 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2010-06-19 bwy StatusNone Fixed
        Open/ClosedOpen Closed
    2008-01-06 strk Severity4 - Important 3 - Normal
        SummaryPlanarityBig5.swf enters infinite loop PlanarityBig5.swf performance
    2007-12-12 strk Carbon-Copy- Added zoulunkai

    Back to the top

    Powered by Savane 3.13-4b48.
    Corresponding source code