Skip to content
This repository has been archived by the owner on Apr 6, 2024. It is now read-only.

Update Quickstart to use sprites rather than canvas draws #7

Open
kamranayub opened this issue May 1, 2014 · 1 comment
Open

Update Quickstart to use sprites rather than canvas draws #7

kamranayub opened this issue May 1, 2014 · 1 comment
Labels

Comments

@kamranayub
Copy link
Member

I think one of the reasons Breakout is so slow on Xbox One (or my phone) is due to all the canvas drawing, rectangles and arc for ball. I was talking to Zach and he's convinced that's why the SHMUP example runs at 60fps on Xbox compared to the ~25fps for Breakout.

We should update the quick start to provide a sprite sheet to use for the blocks, ball, and paddle. Then update the demo too and see if that improves performance.

This would also introduce the Loader, Sprite, and Spritesheet, which are important building blocks of Excalibur.

@kamranayub
Copy link
Member Author

From Zach:

I've got plenty of demos with abusive use of rect and arc
http://www.zachstronaut.com/lab/space-smasher.html
you could see if they are also slow
http://www.zachstronaut.com/lab/3d-canvas-galaxy-1000-pixels.html

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

No branches or pull requests

1 participant