pingjiang / cakejs

Automatically exported from code.google.com/p/cakejs
0 stars 0 forks source link

Dirty Regions #41

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I was thinking about a way to do dirty regions in an efficient manor. I think 
we can render to smaller viewports for dirty regions and run a draw-chain for 
each dirty region, manually cull bboxes, then blit the viewports back to the 
main canvas. If you keep a few extra canvases around this process should be 
fairly simple. If there was a way to do masks in canvas, we could draw dirty 
regions directly to the final buffer, but unfortunately there arent.

Original issue reported on code.google.com by crgod...@gmail.com on 25 Jul 2011 at 5:31

GoogleCodeExporter commented 9 years ago

Original comment by crgod...@gmail.com on 25 Jul 2011 at 5:31

GoogleCodeExporter commented 9 years ago
looks like we can actually render directly to the canvas using clipping 
regions... will make this tons faster.

Original comment by crgod...@gmail.com on 26 Jul 2011 at 1:11