Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

spritesheet canvas rendering in chrome #90

Open
ghost opened this issue Jun 4, 2013 · 2 comments
Open

spritesheet canvas rendering in chrome #90

ghost opened this issue Jun 4, 2013 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 4, 2013

Hi it's us again,

we created spritesheets with "texture packer pro". most of the time they don't work on google chrome if the renderer is set to "canvas". sometimes they work. if we switch the renderer to DOM everything is there, but very laggy. so, this is not an option for us.

https://github.com/Fannon/IA6.Medienprojekt/tree/master/client/obacht

Example: File World.js - Lines 56-63.

@tonistiigi
Copy link
Member

What do you mean by "most of the time" they don't work? Again, a small contained sample would help.

Also you can try the no-dom or random-opts branch. It may have better performance for canvas drawing.

@Fannon
Copy link

Fannon commented Jun 14, 2013

Hi!

is the no-dom branch somewhat stable?
Android Performance is really bad with so much DOM Elements so it would help us alot to do everything with Canvas. Could it even work in CocoonJS then?

The Problem moal321 mentioned was that when we rotated graphics from a spritesheet or animating a Charakter with Spritesheets with Renderer set to CANVAS, it flickers, sometimes it does not appear at all (missing Frames in the Character animation), and sometimes it just works.
This is just happening in Google Chrome.

Greets,
Simon

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants