questions

Forum > Questions > How much data does bot use
Reply To Thread (login)
Xj2 [89]
2013-05-24 19:40:03
[11 years, 185 days ago]

For like a hour how much data isused to play this awesome game?


 
Jans [87]
2013-05-25 02:14:51
[11 years, 184 days ago]

since its all just text, i'd say very little data.


 
Ender [1]
Administrator
2013-05-26 15:00:17
[11 years, 183 days ago]

Yeah, probably very little. Loading bot and clan profiles will add to it a bit because these can have arbitrarily large images attached, but for the most part the site is very low bandwidth.

Out of curiosity, I assume you're on a limited data plan and don't want to use too much? I wonder if this is a common use case. There are probably a lot of things that could be optimized to use much less bandwidth.


 
New Alan [100]
2013-05-27 12:54:02
[11 years, 182 days ago]

One way to slack down on bandwidth would be to send all php output to javascript. Like divs,tables, etc. and then have javascript output it. It should drastically cut down on bandwidth.


 
Fishwick [131]
Moderator
2013-05-27 13:26:09
[11 years, 182 days ago]

How would it alan? Genuine question as I have no clue how that would affect it.


 
Nosferatu [155]
2013-05-27 15:51:22
[11 years, 182 days ago]

Yeah, I'm coding illiterate also.


 
New Alan [100]
2013-05-27 21:17:24
[11 years, 181 days ago]

I'm not sure on a percent wise, but let's just put this to theory.

You have tables for profiles, hall of fame, etc. All HUGE bandwidth eaters. As it is sent from the server to the client for the browser to weed through it and sort it the way the browser likes it. When I say HUGE, I'm not talking GB's, but in perspective to the next idea.

If the server only outputted javascript. Then, the file that takes care of the output is minified. It would be a lot smaller. If the output is "

Hi". It isn't parsed by the client UNTIL javascript takes care of it. This would cut down a lot.

Also, the way battles are set up by Ed via Javascript, is very smart. It doesn't output the battle line by line. The battle.js file takes care of the output and makes it all pretty by the variables that are sent. This could work for the rest of the site also.

halloffame(
   'thead'=>('id','name','wins','losses','color'),
   'tbody'=>(
         1=>('1','ender',0,0,'white'),
         2=>('2','nos',0,0,'#0066ff')
         )
    );

This would take a lot of time to put into place if this ever became a problem. This may be a 25% savings. Maybe.


 
New Alan [100]
2013-05-27 21:18:54
[11 years, 181 days ago]

The output of the first example is

<td>HI</td>

 
Jans [87]
2013-05-28 01:41:33
[11 years, 181 days ago]

An easier fix would be to get rid of all the inline styling.


 
DarkNinjaMaster [76]
2013-06-13 09:00:21
[11 years, 165 days ago]

was watching some battlestar galactica, for 7 hours

bots averaged 11mb/h


 
Jans [87]
2013-06-13 09:07:25
[11 years, 165 days ago]

bots averaged 11mb/h

that's more than expected O_o

Or does "playing bots" equal "browsing through shoegazer's collection of teen-asian-girls-themed dumper clans" to you?


 
DarkNinjaMaster [76]
2013-06-13 09:22:05
[11 years, 165 days ago]

no it means running 6 windows though, i did look at another game i play a couple of times, but it's text based too, hourly it ran like this:

21 6.3 17.3 10.3 8.9 6.9 7.4


 
Forum > Questions > How much data does bot use
Reply To Thread (login)