You can draw the background using a single rect with a tiling background, and not do any drawImage
calls. The technique is outlined in this StackOverflow answer this StackOverflow answer. In its simplest form:
You can draw the background using a single rect with a tiling background, and not do any drawImage
calls. The technique is outlined in this StackOverflow answer. In its simplest form:
You can draw the background using a single rect with a tiling background, and not do any drawImage
calls. The technique is outlined in this StackOverflow answer. In its simplest form:
Edit edit: Don't know why I didn't think of it sooner, but off-screen drawing might wellcould be an improvement. The link provides a nice simple implementation.
Edit edit: Don't know why I didn't think of it sooner, but off-screen drawing might well be an improvement. The link provides a nice simple implementation.
Edit edit: Don't know why I didn't think of it sooner, but off-screen drawing could be an improvement. The link provides a nice simple implementation.
Edit edit: Don't know why I didn't think of it sooner, but off-screen drawing might well be an improvement. The link provides a nice simple implementation.
Edit edit: Don't know why I didn't think of it sooner, but off-screen drawing might well be an improvement. The link provides a nice simple implementation.