I have a javascript/canvas game using requestanimationframe to sync the drawing to the monitor. However I still get shearing effects when the game scrolls (Google Chrome on Windows 7). Is there a better way to draw to screen? Double buffer? This is what I use:
function draw() {
requestAnimationFrame(draw);
// Drawing code
}
draw();
You can see the problem here: http://www.pi-games.com/Thailet/