Thrump Posted December 4, 2020 Share Posted December 4, 2020 The 1st time we render certain sprites with large textures, there's a noticeable slowdown/spike in the framerate in texImage2D (from BaseImageResource.upload). Is there a preferred way to preload these to prevent this? I can give more info if required. Thank you. Quote Link to comment Share on other sites More sharing options...
ivan.popelyshev Posted December 4, 2020 Share Posted December 4, 2020 (edited) yes, call "renderer.texture.bind(myTex);" for every base texture. Or use "pixi.prepare" plugin that is packaged in main pixi, you have to see its docs , or, better, look at its sources. Its always a problem \ also, GC can recycle videomemory if you dont use that base texture for a long time, and that'll induce lag after. beware. Edited December 4, 2020 by ivan.popelyshev Quote Link to comment Share on other sites More sharing options...
Thrump Posted December 5, 2020 Author Share Posted December 5, 2020 Thanks Ivan, I will try this out. 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.