{"issue":{"pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"state":"open","user":{"avatar_url":"https://secure.gravatar.com/avatar/8df04f974c71faad6da0ed2705b85775?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"8df04f974c71faad6da0ed2705b85775","url":"https://api.github.com/users/saf66","login":"saf66","id":1164125},"milestone":null,"labels":[],"assignee":null,"updated_at":"2011-11-11T04:02:11Z","comments":1,"closed_at":null,"url":"https://api.github.com/repos/saf66/393-project/issues/2","body":"In Game.movePiece the entire canvas is redrawn whenever the mouse is moved. This is obviously very inefficient, but I can't think of any other solution at the moment. I tried using ctx.save() and ctx.restore(), but they did absolutely nothing.","html_url":"https://github.com/saf66/393-project/issues/2","number":2,"title":"Redrawing entire canvas is inefficient","id":2206084,"created_at":"2011-11-11T03:46:47Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/9cdaa5fc323f0677f2bbb93b0526ce82?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"9cdaa5fc323f0677f2bbb93b0526ce82","url":"https://api.github.com/users/felixkoi11","login":"felixkoi11","id":1183557},"updated_at":"2011-11-11T04:02:11Z","url":"https://api.github.com/repos/saf66/393-project/issues/comments/2704738","body":"well, does the game lag when you do that? it's a fairly common practice to\nhave the entire game redrawn 60 times a second, so as long as it's not\nnoticable then it's not really a problem i think\n\nOn Thu, Nov 10, 2011 at 10:46 PM, saf66 <\nreply@reply.github.com>wrote:\n\n> In Game.movePiece the entire canvas is redrawn whenever the mouse is\n> moved. This is obviously very inefficient, but I can't think of any other\n> solution at the moment. I tried using ctx.save() and ctx.restore(), but\n> they did absolutely nothing.\n>\n> ---\n> Reply to this email directly or view it on GitHub:\n> https://github.com/saf66/393-project/issues/2\n>","id":2704738,"created_at":"2011-11-11T04:02:11Z"}}