Plugins: impack and Bytemap

I have gotten a few crashes lately and the og looks like above in all cases. Nothing is logged beyond the call to image.load().

Going on the ā€œMaybe this would be better served with some C++ techniques, making reclamation deterministic.ā€ hunch, I spent the afternoon playing around with another sort of allocator, a hybrid between a small arena (for small allocations) and the heap. It was interesting to debug, to say the least. The APIs that underlie impack do indeed perform a ton of allocation, and in particular re allocation. I donā€™t think my previous design fared very well in light of the latter.

Iā€™ll try to push this in the next day or two, after stressing it a bit.

Ok, no haste on my part. Iā€™ve moved on to an OpenGL-based solution that works ok (stable, but not perfect looking scaling). I also discovered some speed issues.

The scaling of impack worked well (when not crashing) on my Nexus 6P, The result looked nice and the speed wasnā€™t too bad (ca 1 second). This is native camera resolution -> 800x800 scaling.

But on older phones the scaling could take 5-6 seconds and that came as a small shock to me to be honest. I was hoping that the smaller native resolution on older phones would in some ways would make up for the weaker processor, but that didnā€™t quite play out the way I had hoped. Not sure if there is anything to be done with this though. Scaling an image is not the best for single threaded CPU processes.Ā 

Is there any document links available for impack and bytemap? canā€™t find them through google

In this case, yes: here and here. (I am for the most part terrible about documentation. :smiley:) There are a few things marked WIP that I would call ready, but otherwise itā€™s mostly complete. (There are some things about Bytes that I will be trying to replace when some new engine features land, possibly soon; but those arenā€™t really for casual use.)

1 Like

What Iā€™m trying to do is capturing some pixelart gameplay screenshots and merge them into gif or mpeg, then share it to social media. look like the plugins are just what I need for the merging part. The documents are fairly clear, I will try it out soon. Thanks for your awesome job! :smiley: