forked from ajpiano/boilerplate-boilerplate
-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1. never lookup location in the rendering loop. Looking up locations is slow. 2. adjust canvas backstore to match size of canvas, not size of window. This means you can use the same code regardless of situation. Just setup your CSS how ever you want. If your canvas is inside some other container or it's set to 50% or whatever it will do the right thing.
- Loading branch information
Showing
1 changed file
with
30 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters