FGL performance problems.

colburt187

  • *
  • Posts: 2416
Hi, I have my game on the Flash Game License site,

I got some feed back saying that it is lagging badly, apparently the frame rate is in single figures. I think it could be something to do with the mouse.

One feedback said I shouldn't use a software mouse cursor? I'm just using the one that comes with stencyl, is there some way I can disable this and just use the standard mouse cursor.

Any other tips for improving my game for the FGL site.

Side note- when I play the game on the site it works ok, maybe a little laggy. The game is 'a single grain of sand' if anyone wants to have a look.

Thanks.

rob1221

  • *
  • Posts: 9473
This topic has come up before, but I don't know if anyone has found a solution.

To switch the cursor, use the hide mouse cursor block and then type Mouse.show(); in a code block.

Photon

  • Posts: 2691
This topic has come up before, but I don't know if anyone has found a solution.

To switch the cursor, use the hide mouse cursor block and then type Mouse.show(); in a code block.
Does that just make the default browser mouse show? I've been told the same problem happens on Pixel Ninja (Flash mouse and browser mouse on top of each other).
Do NOT PM me your questions, because I likely will not respond. If I have replied to your question on the forum, keep using that topic. Thanks!

colburt187

  • *
  • Posts: 2416
Thanks for the reply,

I've used that block and now my game just uses the default cursor, this has improved the lag but I'm still getting it pretty bad on some levels,

Any other anti lag tips?

spoogob

  • Posts: 1106
A few less 'grains of sand' physics actors near the beginning maybe? For me its the first section that is the worst - from there on it wasn't so bad.

colburt187

  • *
  • Posts: 2416
Yeah I've been sacking those poor guys one by one over the last few versions, maybe it's time to get rid of a few more,

Glad to here that its not too bad for the rest of the levels.

Thanks.