Herbert Posted June 29, 2017 Share Posted June 29, 2017 hi guys, I have a perhaps very basic question about loader, When we use loader to load an image, what has it been done, or been uploaded to where? It still delay on it's first render after loaded, unless using prepare plugin upload it to GPU. ivan.popelyshev 1 Quote Link to comment Share on other sites More sharing options...
Taz Posted June 29, 2017 Share Posted June 29, 2017 I think it just downloads and caches the image from the server and tells you when it's done. So it's one step to download ahead of time and another step if you want to upload to GPU ahead of time. Herbert 1 Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 29, 2017 Share Posted June 29, 2017 Its actually possible to unzip the image from png to rgba form on this step, and it'll be done in pixi-v5 Actual uploading consists of two parts - unzip png to RGBA and sending it to GPU. I dont know which is our actual problem Herbert 1 Quote Link to comment Share on other sites More sharing options...
Herbert Posted June 30, 2017 Author Share Posted June 30, 2017 11 hours ago, ivan.popelyshev said: Its actually possible to unzip the image from png to rgba form on this step, and it'll be done in pixi-v5 Actual uploading consists of two parts - unzip png to RGBA and sending it to GPU. I dont know which is our actual problem so do you mean in pixi-v5 the step unzipping png to RGBA will be moved from uploading part to loader.load part, and by doing that, it might smooth up the delay on first render? Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted June 30, 2017 Share Posted June 30, 2017 @Herbert Exactly, and it'll be async, in another thread. One more detail: there will be a flag, whether or not keep that bitmap in memory after its uploaded to GPU. PNG form is small, while that thing is big and for low-memory devices it'll be critical. RPGMaker MV stores extra canvas per pixi texture (and its called Bitmap) and they have problems on low-memory devices. Herbert 1 Quote Link to comment Share on other sites More sharing options...
Herbert Posted July 3, 2017 Author Share Posted July 3, 2017 @ivan.popelyshev Thanks for answering it so detailed, looking forward to pixi-v5 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.