codingthat / HaxeFlixelDevRepros

Trying to figure out various things with HaxeFlixel
MIT License
0 stars 0 forks source link

Frame rate ~30 in flash target #7

Open IBwWG opened 8 years ago

IBwWG commented 8 years ago

Based on the HaxeFlixel dev console, this demo runs at around 30 fps just sitting there. There is absolutely nothing happening in the demo (at least on the surface) when you aren't resizing. Why is the framerate unable to keep up to the default aim of 60? The debug console shows update and draw at 0ms, with only 4 or 5 each (not sure what the units are there.)

OK, I just went to try this again, and now it's 60.

I go to another project in FlashDevelop, one nearly as simple, but with nape physics enabled, and we're in that project down to 30 or less, just sitting there (fresh recompile.)

I open this project in FD again, and (fresh recompile) it's now back down to 30.

Recompile, same thing. And a second time. Now I can't get it to 60 again.

What the...?

IBwWG commented 8 years ago

With only FD running, no browser open, nothing stressing the system, still having this behaviour.

And then randomly later I look and it's running at 50, in my nape-using project.

Later I try without FD, just the debug swf by itself, and get much higher framerates (both for the demo here and my nape project.) Maybe it's an FD issue, then, but it seems so random as to when it actually does work or not.