Skip to main content
Participant
June 5, 2012
Question

FMS 3.5 setInterval connections count

  • June 5, 2012
  • 1 reply
  • 531 views

Hi!

Ive created a simple interval:

[some code]

application.games["game_" + id].gameInterval = setInterval(gameCallback, id);

gameCallback = function(id) {

     var so = SharedObject.get("game_" + id);

     var atime = so.getProperty("time");

     atime += 1;

}

So everybody who is connected to game sharedOBject get notified about time variable change.

Everything works fine, but the problem is that number of shared object conenctions is rising fast, and after some time FMS just freezes. Why thereare so many connectons? Why they are not garbage collected? How to create interval correctly without creating false connections? (im waching the connections number in console shared object tab)

T76

    This topic is closed to new replies. Start a new post to keep the conversation going.

    1 reply

    taurus76Author
    Participant
    June 9, 2012

    bump