{"action":"created","issue":{"url":"https://api.github.com/repos/dymanoid/RealTime/issues/165","repository_url":"https://api.github.com/repos/dymanoid/RealTime","labels_url":"https://api.github.com/repos/dymanoid/RealTime/issues/165/labels{/name}","comments_url":"https://api.github.com/repos/dymanoid/RealTime/issues/165/comments","events_url":"https://api.github.com/repos/dymanoid/RealTime/issues/165/events","html_url":"https://github.com/dymanoid/RealTime/issues/165","id":354008226,"node_id":"MDU6SXNzdWUzNTQwMDgyMjY=","number":165,"title":"Citizens virtualization for large cities","user":{"login":"dymanoid","id":9433345,"node_id":"MDQ6VXNlcjk0MzMzNDU=","avatar_url":"https://avatars1.githubusercontent.com/u/9433345?v=4","gravatar_id":"","url":"https://api.github.com/users/dymanoid","html_url":"https://github.com/dymanoid","followers_url":"https://api.github.com/users/dymanoid/followers","following_url":"https://api.github.com/users/dymanoid/following{/other_user}","gists_url":"https://api.github.com/users/dymanoid/gists{/gist_id}","starred_url":"https://api.github.com/users/dymanoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dymanoid/subscriptions","organizations_url":"https://api.github.com/users/dymanoid/orgs","repos_url":"https://api.github.com/users/dymanoid/repos","events_url":"https://api.github.com/users/dymanoid/events{/privacy}","received_events_url":"https://api.github.com/users/dymanoid/received_events","type":"User","site_admin":false},"labels":[{"id":950223667,"node_id":"MDU6TGFiZWw5NTAyMjM2Njc=","url":"https://api.github.com/repos/dymanoid/RealTime/labels/feature","name":"feature","color":"0052cc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":{"url":"https://api.github.com/repos/dymanoid/RealTime/milestones/19","html_url":"https://github.com/dymanoid/RealTime/milestone/19","labels_url":"https://api.github.com/repos/dymanoid/RealTime/milestones/19/labels","id":3598762,"node_id":"MDk6TWlsZXN0b25lMzU5ODc2Mg==","number":19,"title":"1.17","description":"","creator":{"login":"dymanoid","id":9433345,"node_id":"MDQ6VXNlcjk0MzMzNDU=","avatar_url":"https://avatars1.githubusercontent.com/u/9433345?v=4","gravatar_id":"","url":"https://api.github.com/users/dymanoid","html_url":"https://github.com/dymanoid","followers_url":"https://api.github.com/users/dymanoid/followers","following_url":"https://api.github.com/users/dymanoid/following{/other_user}","gists_url":"https://api.github.com/users/dymanoid/gists{/gist_id}","starred_url":"https://api.github.com/users/dymanoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dymanoid/subscriptions","organizations_url":"https://api.github.com/users/dymanoid/orgs","repos_url":"https://api.github.com/users/dymanoid/repos","events_url":"https://api.github.com/users/dymanoid/events{/privacy}","received_events_url":"https://api.github.com/users/dymanoid/received_events","type":"User","site_admin":false},"open_issues":2,"closed_issues":0,"state":"open","created_at":"2018-08-26T16:23:12Z","updated_at":"2018-09-05T14:08:46Z","due_on":null,"closed_at":null},"comments":20,"created_at":"2018-08-25T12:18:29Z","updated_at":"2018-09-07T03:56:02Z","closed_at":null,"author_association":"OWNER","body":"In the vanilla game, the citizens get spawned randomly, regardless of time of the day. Furthermore, there are only a few movement reasons that cause a certain spawn: like e.g. illness (find hospital) or need for goods (go shopping). Entertainment and _going to work_ are reasons that are throttled by the game depending on current number of spawned citizens and vehicles.\r\n\r\nSince **Real Time** changes the _going to work_ behavior, this movement reason gets a very high priority. The only throttled reason left is entertainment. However, the throttling only occurs while a citizen is at home. This is because whenever a citizen is not at home, there are time restrictions to be applied (e.g. everyone must leave parks until night time, the workers must leave workplaces according to their work shifts etc). The only unrestricted place to be is \"at home\".\r\n\r\nFor large cities (>65k), this introduces a new kind of problems. The spawned citizens throttling relies on the _current number_ of spawned citizens. So, e.g. at 3 p.m., when almost all first shift workers are still at work (already despawned, because inside of buildings), the game allows to spawn lots of unemployed citizens (going e.g. to entertainment). At 6 p.m., when the first work shift ends, all the workers need to be spawned to get back home (or go shopping etc, according to their schedules). Since there is no throttling for citizens being at work, the number of spawned citizens quickly jumps to the maximum 65k. For very large cities, this even causes problems with citizens trying to leave their workplaces, because they cannot be spawned. So they have to wait at work for a \"free slot\".\r\n\r\nThis problem needs to be addressed somehow, but currently I have no ideas in which way."},"comment":{"url":"https://api.github.com/repos/dymanoid/RealTime/issues/comments/419314955","html_url":"https://github.com/dymanoid/RealTime/issues/165#issuecomment-419314955","issue_url":"https://api.github.com/repos/dymanoid/RealTime/issues/165","id":419314955,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTMxNDk1NQ==","user":{"login":"liiir1985","id":9709820,"node_id":"MDQ6VXNlcjk3MDk4MjA=","avatar_url":"https://avatars0.githubusercontent.com/u/9709820?v=4","gravatar_id":"","url":"https://api.github.com/users/liiir1985","html_url":"https://github.com/liiir1985","followers_url":"https://api.github.com/users/liiir1985/followers","following_url":"https://api.github.com/users/liiir1985/following{/other_user}","gists_url":"https://api.github.com/users/liiir1985/gists{/gist_id}","starred_url":"https://api.github.com/users/liiir1985/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/liiir1985/subscriptions","organizations_url":"https://api.github.com/users/liiir1985/orgs","repos_url":"https://api.github.com/users/liiir1985/repos","events_url":"https://api.github.com/users/liiir1985/events{/privacy}","received_events_url":"https://api.github.com/users/liiir1985/received_events","type":"User","site_admin":false},"created_at":"2018-09-07T03:56:02Z","updated_at":"2018-09-07T03:56:02Z","author_association":"NONE","body":"@dymanoid How about share riding? Will it solve the problem in some degrees? If the Citizen cannot be spawned, then call another citizen which has a viehcle to pick him up, then they move together. Maybe it's somehow more realistic than just teleporting the citizen directly"}}
{"actor":{"display_login":"liiir1985"}}