Jump to content

Flicker when big spritesheets used.


b0y2k
 Share

Recommended Posts

Lo guys,
I have been doing performance upgrades to my current game. 
I have combined the graphics into big spritesheets which has helped with frame rates and general performance, great.
Problem i now have is that the game some times flickers when updating the sprites.
I'm sure this is from setting the sprites to the big spritesheet and a slight lag between setting .frameName
Does anyone have any advice how to deal with this?

Link to comment
Share on other sites

You might want to consider offering more detailed information about both your implementation and the undesired behaviour you're experiencing.

What devices/browsers are you running on?

What are your Texture packing settings?

What do you mean by updating the sprites?

Maybe even a CodePen/JSFiddle demonstrating this?

etc.

I've never had any problems using PIXI.MovieClip with Texture Atlases.

Link to comment
Share on other sites

Thanks for the reply lloydevans :)

Unfortunately the assets are under licence and cannot be shared online at this time... 
It is actually a texture atlas so sorry for the confusion, i just call them sprite sheets out of habit i think.

So a better run down of what is happening..
I am making a series of slot games so there are 5 colums with 3 icons in each. When you initiate the spin you move the columns up to the top and then tween them down. When they reach the bottom you move them back up to the top and repeat. As you move from the bottom to top position you update the sprites so it appears a seamless loop. 

It looks to me like the 'blink' is the whole image being added to the stage and then updating to the right frameName, causing it to flicker very briefly...

The game is made for desktop and mobile and happens on both. All atlases are under 2mb and 2048x2048 or under.




 

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...