Skip to main content
Search type Search syntax
Tags [tag]
Exact "words here"
Author user:1234
user:me (yours)
Score score:3 (3+)
score:0 (none)
Answers answers:3 (3+)
answers:0 (none)
isaccepted:yes
hasaccepted:no
inquestion:1234
Views views:250
Code code:"if (foo != bar)"
Sections title:apples
body:"apples oranges"
URL url:"*.example.com"
Saves in:saves
Status closed:yes
duplicate:no
migrated:no
wiki:no
Types is:question
is:answer
Exclude -[tag]
-apples
For more details on advanced search visit our help page
Results tagged with
Search options not deleted user 52397

Canvas is a drawing element introduced to web development with HTML5.

2 votes
1 answer
1k views

Can the performance of this canvas drawImage() test be improved?

I have a quite simple loop that draws an 8px by 8px image many times in a canvas in a tiling fashion. Currently it's drawing 7500 images each loop. See the jsfiddle. … var img = new Image(); img.src = 'http://i.imgur.com/3dzaMlv.png'; var W = 8; var H = 8; var R = 800/W; var C = 600/H var canvas = document.getElementById('canvas'); var ctx = canvas.getContext('2d') …
Tony R's user avatar
  • 123