by leeoniya · 4y ago · 0 comments
ctx.fillText() is the next perf killer :(
maybe i can sacrifice some quality for speed during resize with the new ctx.textRendering, though.
...and one more thing. why is there no easy inverse of ctx.clip(), e.g. ctx.mask()? currently i think it requires resorting to awkward Path2D composition/cloning + evenodd ctx.fill() hacks: