Isaac Burns
Isaac Burns
Thanks for the code sample. I reverted all the container changes until I can test them more completely.
Changing to Map and Set and iterating using for..in is what caused the slowdown. At that time, leaving it as a linked-list was faster. I still have this change archived...
It's this way only because I tried to match the C++ API. This might be something to add to a wrapper library that had some kind of event system.
If the phone doesn't support the WebGL context, it will render using the Canvas2D context. This can be much slower, especially if the animation includes meshes. Can you provide an...
Yes, this could be simplified to a call to ctx.drawImage, provided an atlas is not being used or an atlas site without rotation is being used. I left it this...
In the region draw case, you would nee to replace this: ``` ctxDrawImageMesh(ctx, render.region_vertex_triangle, render.region_vertex_position, render.region_vertex_texcoord, image, site, page); ``` with this: ``` if (site) { if (site.rotate) { ctxDrawImageMesh(ctx,...
So you want to override the attachment in a slot, apart from what the Spine animation sets, correct? This should be an easy addition, if I'm understanding correctly.
The easiest way is to maintain two poses that point to the same data and blend after striking each. I've added this to the demo in c36b2f0c78ff945a5b231d91161dfd5c196dd1d9.
It looks like the Google Closure Compiler ADVANCED_OPTIMIZATIONS flag might be breaking things. Can you try exporting HTML5 with "Minify script" unchecked? I probably just need to export some of...
I've checked in a couple changes that should fix this. Please try the latest from the spine-c2-plugin repo.