Skip to main content
6 events
when toggle format what by license comment
Jan 7, 2017 at 11:28 comment added Cephas @jujumbura you can try this method: gamedev.stackexchange.com/questions/132521/…
Dec 10, 2012 at 0:53 comment added GameAlchemist think about using layered canvases, and you might balance graphic load by updating some of them less often, and also win time only clear your sprites on the main canvas instead of clearing whole canvas.
Sep 18, 2012 at 15:35 comment added dougajmcdonald For my particular example the background was static so I got a big benefit by not needing to redraw each frame (I just did the sprites). Afraid I'm not sure how best to cater for a scrolling BG :(
Sep 18, 2012 at 15:15 comment added jujumbura I'd like to try only redrawing certain areas, but I am unsure how to accomplish it for my desired effect. My game is designed to have a large scrolling world in X & Y ( to-down view ), with a number of "entity" sprites moving on top of that world. The world BG is entirely static, but since it can scroll, it seems like I still need to redraw it to the canvas each frame. I have tried drawing the BG into a large offscreen canvas and then drawing a subsection into the main one, but it doesn't seem to get me much performance gain. Are there better ways of accomplishing the scrolling BG effect?
Sep 18, 2012 at 9:25 review First posts
Oct 16, 2012 at 13:17
Sep 18, 2012 at 9:25 history answered dougajmcdonald CC BY-SA 3.0