{"action":"created","issue":{"url":"https://api.github.com/repos/openlayers/ol3/issues/3895","labels_url":"https://api.github.com/repos/openlayers/ol3/issues/3895/labels{/name}","comments_url":"https://api.github.com/repos/openlayers/ol3/issues/3895/comments","events_url":"https://api.github.com/repos/openlayers/ol3/issues/3895/events","html_url":"https://github.com/openlayers/ol3/pull/3895","id":94403291,"number":3895,"title":"Rework the tile queue for multiple queues","user":{"login":"aisaacs","id":2057427,"avatar_url":"https://avatars.githubusercontent.com/u/2057427?v=3","gravatar_id":"","url":"https://api.github.com/users/aisaacs","html_url":"https://github.com/aisaacs","followers_url":"https://api.github.com/users/aisaacs/followers","following_url":"https://api.github.com/users/aisaacs/following{/other_user}","gists_url":"https://api.github.com/users/aisaacs/gists{/gist_id}","starred_url":"https://api.github.com/users/aisaacs/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aisaacs/subscriptions","organizations_url":"https://api.github.com/users/aisaacs/orgs","repos_url":"https://api.github.com/users/aisaacs/repos","events_url":"https://api.github.com/users/aisaacs/events{/privacy}","received_events_url":"https://api.github.com/users/aisaacs/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-10T22:09:23Z","updated_at":"2015-07-12T13:31:09Z","closed_at":"2015-07-10T22:33:49Z","pull_request":{"url":"https://api.github.com/repos/openlayers/ol3/pulls/3895","html_url":"https://github.com/openlayers/ol3/pull/3895","diff_url":"https://github.com/openlayers/ol3/pull/3895.diff","patch_url":"https://github.com/openlayers/ol3/pull/3895.patch"},"body":"This fixes https://github.com/openlayers/ol3/issues/3889, which has a good explanation of the issue.\r\n\r\nRe: Greediness. Before [this change](https://github.com/openlayers/ol3/commit/2142b538ac7b7aafdbae37d58613454f5f5baab5), the implementation of the queue would calculate the amount of tiles to load before dequeuing / loading. In the multiple queue case, after https://github.com/planetlabs/ol3/commit/b57cdb730c5b57450a2f9adcca44038994181165 this could cause a queue to not be fully utilized. For instance, if a queue were to be requested to load N new tiles, and had the capacity for it, if any of the dequeued tiles were in a state other than IDLE the total number of tiles that would start loading would be less than what had been requested. \r\nThis change makes the queue always try to load tiles at its maximum capacity. "},"comment":{"url":"https://api.github.com/repos/openlayers/ol3/issues/comments/120721101","html_url":"https://github.com/openlayers/ol3/pull/3895#issuecomment-120721101","issue_url":"https://api.github.com/repos/openlayers/ol3/issues/3895","id":120721101,"user":{"login":"ahocevar","id":211514,"avatar_url":"https://avatars.githubusercontent.com/u/211514?v=3","gravatar_id":"","url":"https://api.github.com/users/ahocevar","html_url":"https://github.com/ahocevar","followers_url":"https://api.github.com/users/ahocevar/followers","following_url":"https://api.github.com/users/ahocevar/following{/other_user}","gists_url":"https://api.github.com/users/ahocevar/gists{/gist_id}","starred_url":"https://api.github.com/users/ahocevar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ahocevar/subscriptions","organizations_url":"https://api.github.com/users/ahocevar/orgs","repos_url":"https://api.github.com/users/ahocevar/repos","events_url":"https://api.github.com/users/ahocevar/events{/privacy}","received_events_url":"https://api.github.com/users/ahocevar/received_events","type":"User","site_admin":false},"created_at":"2015-07-12T13:31:09Z","updated_at":"2015-07-12T13:31:09Z","body":"Thanks for this. Great work!"}}