tinybee Posted April 21, 2018 Share Posted April 21, 2018 hi guys, We use pixi-spine for rendering, but I have a runtime question: phase01: one json file, one png vs phase02: one separate to more jsons, but same png does the phase02 will multiply the memory cost of the same png in gpu? I mean that more json files with the same png, will it multiply the png memory cost? sorry for my bad english thanks for your replying Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 21, 2018 Share Posted April 21, 2018 there's a way to use same BaseTexture for all of your spine models. I forgot which one, but there was an issue: https://github.com/pixijs/pixi.js/issues?utf8=✓&q=is%3Aissue+ same png, different atlases => only one BaseTexture. If you do it right. Quote Link to comment Share on other sites More sharing options...
tinybee Posted April 22, 2018 Author Share Posted April 22, 2018 13 hours ago, ivan.popelyshev said: there's a way to use same BaseTexture for all of your spine models. I forgot which one, but there was an issue: https://github.com/pixijs/pixi.js/issues?utf8=✓&q=is%3Aissue+ same png, different atlases => only one BaseTexture. If you do it right. hey ivan, thanks for your answer if I realize correctly, the more jsons i use will make more BaseTextures right? I did a littile search for keyworld: "base texture" and I found these: https://github.com/pixijs/pixi.js/issues/4472 http://www.html5gamedevs.com/topic/30682-difference-between-texture-and-new-pixitexture/ do you mean theses ways too? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted April 22, 2018 Share Posted April 22, 2018 Sorry, wrong repo. search it here: https://github.com/pixijs/pixi-spine/issues?utf8=✓&q=is%3Aissue+ Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.