A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Throttling troubles

  1. #1
    Registered User
    Join Date
    Nov 2011
    Posts
    1

    Throttling troubles

    Hey guys!
    I'm having some problem with throttling :

    Throttling - Non-visible SWFs and SWFs on hidden tabs are throttled down to 2 frames per second. No rendering occurs unless the SWF becomes visible again. Timers and local connections are also clocked down to 2 FPS.
    In a single player game, you can just pause the game when the swf is non visible/inactive, but in a multiplayer game that's a huge problem for me. Is there any way to desactivate this using as3? I did read few things about wmode etc... but indeed you can't change the way the game is embeded on the flash games portal.

    My problem is that I have a timer listener that check every 100ms for collisions and few other things. If the player minimize his window, the timer will only occurs 2 times per second instead of an average of 9-10, OUCH !

    I just hope someone got a solution

  2. #2
    Senior Member tonypa's Avatar
    Join Date
    Jul 2001
    Location
    Estonia
    Posts
    8,227
    No, you can not override this behaviour (or every Flash ad would override it and whole idea would become pointless). Your game should check for fps and if it drops below 10 for example, game should pause. Its not important why it drops so low, the game is obviously unplayable anyway. Once fps is restored to acceptable value again, game continues.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center