Flash target very slow

47 views
Skip to first unread message

talkingalone

unread,
Aug 16, 2015, 10:27:05 AM8/16/15
to HaxeFlixel
Hi everyone, I'm new to HaxeFlixel and this is my first post in the forum.

I'm having some trouble when compiling a simple test game (an animated sprite with some movement) to flash. I'm using Flash Debugger on OSX to run it.

When the sprite starts moving, there's an instant at the beginning when it moves fast, only to drop quickly and go very slow. Also, when I move the mouse over the Flash window, the animation slows down. The whole thing in general is slow.

On the other hand, if I compile to Mac OSX, everything seems to work fine.

Anyone has any clue about why this happens? Is it because I'm running it with the Flash Debugger?

Thanks

Eric Grice

unread,
Aug 16, 2015, 10:37:23 AM8/16/15
to haxef...@googlegroups.com

I'd say it's probably the flash debugger.  I haven't seen my stuff run slow on any platform from my desktop machine, but on my laptop my game will drop frames if I am running the flash debugger.  I don't know what you can do to improve performance with the debugger, perhaps others can chime in regards to that.  My laptop has pretty good specs so I was surprised it ran slower with the debugger.

--
HaxeFlixel Development Community
See our github https://github.com/haxeflixel/ and our documentation http://haxeflixel.com/documentation/
---
You received this message because you are subscribed to the Google Groups "HaxeFlixel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to haxeflixel+...@googlegroups.com.
Visit this group at http://groups.google.com/group/haxeflixel.
To view this discussion on the web visit https://groups.google.com/d/msgid/haxeflixel/48357314-357f-48e0-8286-d73026c85908%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

SruloArt

unread,
Aug 16, 2015, 10:53:42 AM8/16/15
to haxef...@googlegroups.com
* Use the standalone debug flash player to open .swfs (you can download it using FlashDevelop tools>install software).

* Don't use the Flash Debugger if you value performance. Use Adobe Scout or HxScout to debug. If you must use it (like, you have to have breakpoints no matter what) then don't expect a consistent framerate. There's nothing specific you can do from your end to improve its performance. 

* The standalone debug player would catch any user input (keyboard, mouse), so this is expected. You're only noticing it because your frames are already slow running.

* For a real-life experience open your .swf with a modern browser. See if you actually have a problem or not.

* That said, are you sure your code is in order? this sounds pretty strange even for the FD debugger.

talkingalone

unread,
Aug 16, 2015, 11:43:13 AM8/16/15
to HaxeFlixel
Thank you for your replies.

I'm already using the standalone version of the debugger. I have even tried with the normal version of Flash Player, and I'm still having the same issue. It seems to be more or less okay with Chrome though.

The code is very simple, there shouldn't be anything wrong with it, it's just a moving sprite, animated from a *.png spritesheet. The spritesheet has eleven 150x150 frames. I'm using Intellij.

At the moment I'm just trying out things, so I don't have to debug anything. It's weird though.
Reply all
Reply to author
Forward
0 new messages