Jump to content

Framerate spike in texImage2D on 1st render


Thrump
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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 by ivan.popelyshev
Link to comment
Share on other sites

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.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...