{"action":"closed","issue":{"url":"https://api.github.com/repos/tgstation/-tg-station/issues/585","labels_url":"https://api.github.com/repos/tgstation/-tg-station/issues/585/labels{/name}","comments_url":"https://api.github.com/repos/tgstation/-tg-station/issues/585/comments","events_url":"https://api.github.com/repos/tgstation/-tg-station/issues/585/events","html_url":"https://github.com/tgstation/-tg-station/issues/585","id":14306289,"number":585,"title":"Large rsc files - TGservers have unsustainably high bandwidth usage.","user":{"login":"ghost","id":10137,"avatar_url":"https://avatars.githubusercontent.com/u/10137?v=3","gravatar_id":"","url":"https://api.github.com/users/ghost","html_url":"https://github.com/ghost","followers_url":"https://api.github.com/users/ghost/followers","following_url":"https://api.github.com/users/ghost/following{/other_user}","gists_url":"https://api.github.com/users/ghost/gists{/gist_id}","starred_url":"https://api.github.com/users/ghost/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghost/subscriptions","organizations_url":"https://api.github.com/users/ghost/orgs","repos_url":"https://api.github.com/users/ghost/repos","events_url":"https://api.github.com/users/ghost/events{/privacy}","received_events_url":"https://api.github.com/users/ghost/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/tgstation/-tg-station/labels/Maintainability%20-%20Hinders%20improvements","name":"Maintainability - Hinders improvements","color":"0b02e1"},{"url":"https://api.github.com/repos/tgstation/-tg-station/labels/Not%20a%20bug","name":"Not a bug","color":"35A17D"},{"url":"https://api.github.com/repos/tgstation/-tg-station/labels/Sound","name":"Sound","color":"5ECCD1"},{"url":"https://api.github.com/repos/tgstation/-tg-station/labels/Sprites","name":"Sprites","color":"5ECCD1"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":28,"created_at":"2013-05-14T12:02:13Z","updated_at":"2015-04-04T04:59:48Z","closed_at":"2015-04-04T04:59:48Z","body":"http://ss13.eu/phpbb/viewtopic.php?f=3&t=229\r\n\r\nCurrently, our codebase has a .rsc filesize of 27.2Mb. This is extremely high.\r\nBandwidth usage for TGservers is almost 2000Gb a month.\r\n\r\nThis is something we've been saying is an issue for a long long time. It's not only an issue for hosts, but one for clients having to download almost 30Mb on a throttled byond connection.\r\n\r\nAs I see it we have some key savings we could make:\r\n\r\n*Remove unused icon_states! There are loaaaaads.\r\n\r\n*Make a MAPPING define, which would set area icons - this way, these icons would not be compiled into release versions where they are not used.\r\n\r\n*Making use of the map-merge tools obligatory\r\n\r\n*Reduce the colour pallettes of icon files\r\n\r\n*Remove identical repeated frames (copypasted) in animated icons. Instead use the repeat frame option (could be particularly helpful on the titlescreen image)\r\n\r\n*Remove/replace/reduce sounds which add nothing to the experience. Note, I'm not saying remove anything like sound effects. I am saying stuff like say, if \"put a banging donk on it\" was a 6Mb Ogg, possibly reducing that to a more acceptable size....as a hypothetical example\r\n\r\n*Marking our more-stable revisions so servers do not have to update as often (not sure how you'd judge which ones are more stable)\r\n\r\n*Look into hosting rsc files separately. Unfortunately, byond does not support https, so I am unsure how this would work in a practical sense. However, adding -support- for it should be fairly trivial, and would pretty much eliminate most of the bandwidth use whilst not affecting stability (it reverts to the old behaviour of downloading from the server if the rsc file cannot be fetched from the alternative source)"}}