awe6 performance issue question!

57 visualitzacions
Ves al primer missatge no llegit

Dead Duck

no llegida,
9 de des. 2013, 9:12:469/12/13
a aw...@googlegroups.com
Yo!

Hey I've been trying awe6 out and it's really appealing, but one concern I have right now is with the awe6Demo.  In Game.hx, if I set it so that there's only 1 invader on the screen to click so I can cycle through games real fast, the framerate will quickly start to dropoff and continue to do so.  Is this just cuz its a demo and not really meant to be played 30 times or is this something with awe6 and how its always creating new scenes(my current theory) or something else?

Im not wise enough yet to distinguish between what's for quick prototyping and what's best practices!

Rob Fell

no llegida,
9 de des. 2013, 14:30:499/12/13
a aw...@googlegroups.com
Yo!
 
And thanks for spotting this.  Fixed with revision 614:
http://code.google.com/p/awe6/source/detail?r=614
 
As can be seen the slowdown was to do with a Loader (in some unstated global space) being uncollected.  This Loader loaded AMV1 content for middle mouse button interaction which is unavailable to AVM2.  So nothing to do with the demo explicitly.
 
It was difficult to track down, because this issue only presented when using the Flash driver via OpenFL (straight Flash was fine - I use this).  I hadn't observed it before (and it would have been spotted at some point) so I wonder if it is newly introduced in OpenFL's ApplicationDomain / Loader space?  Not sure if that's a real concern as I doubt anyone is using OpenFL for Flash target.  Fixed anyways.

Dead Duck

no llegida,
10 de des. 2013, 1:41:3010/12/13
a aw...@googlegroups.com
So you made the "var l_data:String = "s503:RldTCnkBA..."  from an AS2 swf that's seeing if keycode is middle/right and changing the height/width of it from 100 to 50 respectively?  Am I understanding properly?

awe6 is amazing I'm learning a whole lot just by digging through what you've done.  Thanks!



Rob Fell

no llegida,
10 de des. 2013, 13:15:4210/12/13
a aw...@googlegroups.com
Yes you understand correctly - AVM1 was the only way to support middle mouse at the time.

Iirc Flash API 11.2 has proper support for right clicks and middle clicks, so I should update this.  Personally I still limit support for my games to Flash API 10.1 so I will keep the AVM1 fallback in place too.
 
For completeness the AS2 master file (XFL) can be found here:
Respon a tots
Respon a l'autor
Reenvia
0 missatges nous