canvasman Posted November 11, 2018 Share Posted November 11, 2018 When I load image with PIXI.loader or with PIXI.Texture.fromImage(), does it reserve memory from GPU before adding the texture to actual sprites and them to stage? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted November 11, 2018 Share Posted November 11, 2018 At first render pass. If you want to upload them before render, look here: http://pixijs.download/dev/docs/PIXI.prepare.html Or use good old "renderer.textureManager.updateTexture(myTexture)" canvasman and jonforum 1 1 Quote Link to comment Share on other sites More sharing options...
xerver Posted November 12, 2018 Share Posted November 12, 2018 Quote does it reserve memory from GPU before adding the texture to actual sprites and them to stage No. We don't upload the texture until the texture has been completely downloaded and we need to render a sprite that uses it (so it is in the stage). The first time we encounter a new texture on a render pass is when it will get uploaded, there is no preallocation that happens. You can upload it manually if you need to like Ivan mentioned. jonforum 1 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.