This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Suggestions
  •  » Disable auto updating cloud vars when there aren't any

#1 2012-05-21 07:36:55

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Disable auto updating cloud vars when there aren't any

so i opened the web console while browsing the project editor in scratch2.
http://i.imgur.com/qwlcW.png
turns out the page sends messages two times a second just to realize there aren't any cloud vars in the project. clever, ST  tongue

so i just suggest you disable it when you get a {"vars":[],"lists":[]} answer  smile
(and maybe give an option for people that pay for each MB to disable auto-update)

Offline

 

#2 2012-05-21 13:50:44

scimonster
Community Moderator
Registered: 2010-06-13
Posts: 1000+

Re: Disable auto updating cloud vars when there aren't any

Yeah, if there aren't any cloud variables, it shouldn't check for them.  tongue

Offline

 

#3 2012-05-21 14:07:33

joefarebrother
Scratcher
Registered: 2011-04-08
Posts: 1000+

Re: Disable auto updating cloud vars when there aren't any

Or maybe, if a cloud variable is updated, it should send a message to the server, which sends a message to all the projects using it so the project doesn't have to check all the time.


My latest project is called http://tinyurl.com/d2m8hne! It has http://tinyurl.com/d395ygk views, http://tinyurl.com/cnasmt7 love-its, and http://tinyurl.com/bwjy8xs comments.
http://tinyurl.com/756anbk   http://tinyurl.com/iplaychess

Offline

 

#4 2012-05-22 07:59:21

SJRCS_011
Scratcher
Registered: 2011-02-07
Posts: 1000+

Re: Disable auto updating cloud vars when there aren't any

joefarebrother wrote:

Or maybe, if a cloud variable is updated, it should send a message to the server, which sends a message to all the projects using it so the project doesn't have to check all the time.

Yeah, so maybe like Remote Sensors Connections


http://i.imgur.com/vQqtH.png
Learning to Program in a Nutshell:  "You're missing a closing parentheses" - LS97

Offline

 

#5 2012-05-31 16:38:29

johnadmin
Scratch Team
Registered: 2007-03-13
Posts: 100+

Re: Disable auto updating cloud vars when there aren't any

scimonster wrote:

Yeah, if there aren't any cloud variables, it shouldn't check for them.  tongue

Good idea. We'll do that.

-- John

Offline

 

#6 2012-05-31 16:45:16

johnadmin
Scratch Team
Registered: 2007-03-13
Posts: 100+

Re: Disable auto updating cloud vars when there aren't any

joefarebrother wrote:

Or maybe, if a cloud variable is updated, it should send a message to the server, which sends a message to all the projects using it so the project doesn't have to check all the time.

Good point. That's exactly how it works when Scratch can open a connection to the server. The HTTP method is the fallback when (as often happens) a firewall prevents Scratch from opening a connection to the cloud data port number. (roijac's firewall must be blocking that port).

  -- John

Last edited by johnadmin (2012-05-31 16:45:47)

Offline

 

#7 2012-06-01 11:09:21

roijac
Scratcher
Registered: 2010-01-19
Posts: 1000+

Re: Disable auto updating cloud vars when there aren't any

it probably was my firewall, i had some problems with it  smile
but even on HTTP it shouldn't do that  tongue

Offline

 
  • Index
  •  » Suggestions
  •  » Disable auto updating cloud vars when there aren't any

Board footer