{"action":"created","issue":{"url":"https://api.github.com/repos/pixijs/pixi-spine/issues/260","repository_url":"https://api.github.com/repos/pixijs/pixi-spine","labels_url":"https://api.github.com/repos/pixijs/pixi-spine/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/pixijs/pixi-spine/issues/260/comments","events_url":"https://api.github.com/repos/pixijs/pixi-spine/issues/260/events","html_url":"https://github.com/pixijs/pixi-spine/issues/260","id":342226909,"node_id":"MDU6SXNzdWUzNDIyMjY5MDk=","number":260,"title":"Weird behaviour with same .atlas file","user":{"login":"Tigerwulf","id":9695586,"node_id":"MDQ6VXNlcjk2OTU1ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/9695586?v=4","gravatar_id":"","url":"https://api.github.com/users/Tigerwulf","html_url":"https://github.com/Tigerwulf","followers_url":"https://api.github.com/users/Tigerwulf/followers","following_url":"https://api.github.com/users/Tigerwulf/following{/other_user}","gists_url":"https://api.github.com/users/Tigerwulf/gists{/gist_id}","starred_url":"https://api.github.com/users/Tigerwulf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tigerwulf/subscriptions","organizations_url":"https://api.github.com/users/Tigerwulf/orgs","repos_url":"https://api.github.com/users/Tigerwulf/repos","events_url":"https://api.github.com/users/Tigerwulf/events{/privacy}","received_events_url":"https://api.github.com/users/Tigerwulf/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":7,"created_at":"2018-07-18T08:29:28Z","updated_at":"2018-07-18T11:43:01Z","closed_at":null,"author_association":"NONE","body":"Hy,\r\n\r\nso in my case we have more than 1 spine-json's and only 1 .atlas files.\r\nSo like:\r\nspineAnimation_1.json\r\nspineAnimation_2.json\r\n....\r\ncommon.atlas (Atlas information for the 1 or more texture atlas that i need)\r\nspineGraphicTextures_0.png (Texture Atlas)\r\nspineGraphicTextures_1.png (Texture Atlas)\r\n\r\nI load the JSON with the PIXI.loader like (Case 2, not step 1 or 2)\r\nhttps://github.com/pixijs/pixi-spine/blob/master/examples/preload_atlas_text.md\r\n\r\nI figure out that all JSONs get an own BaseTexture and didn't share the BaseTexture for every JSON.\r\n\r\nI looked deeper and i saw that the \"textureCacheIds\" get weird namings.\r\nFor that example case above:\r\n[\"spineAnimation_1.json_atlas_page_spineGraphicTextures_0.png\",\r\n\"../assets/folder/where/the/texture/is/spineGraphicTextures_0.png\"]\r\n\r\nSo what is guess is, that \"textureCacheIds\" will be used to generate the \"hash\". And the \"hash\" are used to check for same BaseTextures. So in this case, all JSON's get an own BaseTexture.\r\n\r\nWhat means, when i play 5 animations, containing in an extra json file, that 5 textures (eg. 2k x 2k pixel) will be needed to render everything. That kills mobile devices.\r\n\r\nI do anything wrong? Or why the loader create a new BaseTexture, for every JSON?\r\nHope my english is not so bad, otherwise i can try to explain more :D.\r\n\r\nThx for any help."},"comment":{"url":"https://api.github.com/repos/pixijs/pixi-spine/issues/comments/405902427","html_url":"https://github.com/pixijs/pixi-spine/issues/260#issuecomment-405902427","issue_url":"https://api.github.com/repos/pixijs/pixi-spine/issues/260","id":405902427,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNTkwMjQyNw==","user":{"login":"Tigerwulf","id":9695586,"node_id":"MDQ6VXNlcjk2OTU1ODY=","avatar_url":"https://avatars0.githubusercontent.com/u/9695586?v=4","gravatar_id":"","url":"https://api.github.com/users/Tigerwulf","html_url":"https://github.com/Tigerwulf","followers_url":"https://api.github.com/users/Tigerwulf/followers","following_url":"https://api.github.com/users/Tigerwulf/following{/other_user}","gists_url":"https://api.github.com/users/Tigerwulf/gists{/gist_id}","starred_url":"https://api.github.com/users/Tigerwulf/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tigerwulf/subscriptions","organizations_url":"https://api.github.com/users/Tigerwulf/orgs","repos_url":"https://api.github.com/users/Tigerwulf/repos","events_url":"https://api.github.com/users/Tigerwulf/events{/privacy}","received_events_url":"https://api.github.com/users/Tigerwulf/received_events","type":"User","site_admin":false},"created_at":"2018-07-18T11:43:01Z","updated_at":"2018-07-18T11:43:01Z","author_association":"NONE","body":"Hey,\r\n\r\ni checked this out. On PC it works fine, i guess.\r\nOn mobile i get an max call stack exception. (Testet on iOS)\r\n\r\nHere are the call stack:\r\n\r\n> [Error] RangeError: Maximum call stack size exceeded.\r\n\tsend (fancyfruitsccs.html:9:27787)\r\n\t_loadXhr (Skriptelement 2:9:27787)\r\n\tload (Skriptelement 2:9:25700)\r\n\t(anonyme Funktion) (Skriptelement 2:9:20980)\r\n\ts (Skriptelement 2:10:815)\r\n\ti (Skriptelement 2:10:872)\r\n\t_loadResource (Skriptelement 2:9:20801)\r\n\tprocess (Skriptelement 2:10:2016)\r\n\t(anonyme Funktion) (Skriptelement 2:10:1536)\r\n\t(anonyme Funktion) (Skriptelement 2:10:989)\r\n\t_onLoad (Skriptelement 2:9:21305)\r\n\tvalue (Skriptelement 2:8:14904)\r\n\tcomplete (Skriptelement 2:9:24712)\r\n\t_xhrOnLoad (Skriptelement 2:9:29751)\r\n\t(anonyme Funktion)\r\n\tsend\r\n\t_loadXhr (Skriptelement 2:9:27787)\r\n\tload (Skriptelement 2:9:25700)\r\n\t(anonyme Funktion) (Skriptelement 2:9:20980)\r\n\ts (Skriptelement 2:10:815)\r\n\ti (Skriptelement 2:10:872)\r\n\t_loadResource (Skriptelement 2:9:20801)\r\n\tprocess (Skriptelement 2:10:2016)\r\n\t(anonyme Funktion) (Skriptelement 2:10:1536)\r\n\t(anonyme Funktion) (Skriptelement 2:10:989)\r\n\t_onLoad (Skriptelement 2:9:21305)\r\n\tvalue (Skriptelement 2:8:14904)\r\n\tcomplete (Skriptelement 2:9:24712)\r\n\t_xhrOnLoad (Skriptelement 2:9:29751)\r\n\t(anonyme Funktion)\r\n\tsend"}}
{"actor":{"display_login":"Tigerwulf"}}