Fixed the lag on small grid sizes by rebuilding the paint rendering by doing these changes:
- Drawings are now cached on an offscreen canvas and rendered via a single drawImage() call every frame instead of running 30,000+ fillRect() calls per second.
- Grouped pixels by color to avoid expensive canvas context switching.
maybe still needs some work, but its already alot faster for things like text rendering
Comments 0
No comments yet. Be the first!
Sign in to join the conversation.