paperjs / paper.js

The Swiss Army Knife of Vector Graphics Scripting – Scriptographer ported to JavaScript and the browser, using HTML5 Canvas. Created by @lehni & @puckey
http://paperjs.org
Other
14.5k stars 1.23k forks source link

Complex Shape Caching and Paper.js #481

Open nicholaswmin opened 10 years ago

nicholaswmin commented 10 years ago

Did anyone ever thought of implementing image caching for complex shapes in Paper.js? Similar to this maybe: http://fabricjs.com/svg-caching/

The performance bump seems to be significant.

dcalhoun commented 10 years ago

I'm also curious about this. Is there any way to accomplish complex shape caching in Paper.js?

lehni commented 10 years ago

Yes bitmap caching is planned. The difference to Fabric.js will be that we will invalidate the cache when scaling or rotation will happen, so caching won't have an impact on appearance. Or maybe there can be two options, one that enforces caching in even in such instances.

nicholaswmin commented 10 years ago

+1 from me, I've been asking pushing the performance for some time now. Does this mean the SVG backend is off the table?

lehni commented 10 years ago

Believe me, we'd love to push performance too. SVG backend is not off the table, I'm making more concrete plans for that. But before work on it can start, there is some more refactoring that needs to happen. We all have day jobs and need to find time to work on such bigger features. If development of such a feature is crucial for a business, then it can of course be sponsored.

nicholaswmin commented 10 years ago

Yeah I mailed Jonathan about this, near the beginning of this summer, when we needed this ASAP, but you guys were completely swamped with projects so I couldn't really insist.

If anything else comes up that is really urgent I'd mail the proposal again but until then..

Let's see what comes out with the bitmap caching first.

alexjlockwood commented 7 years ago

Im curious, is v1.0.0 still happening?