YUDisplacementTransition icon indicating copy to clipboard operation
YUDisplacementTransition copied to clipboard

memory jumps

Open alyfreym opened this issue 6 years ago • 1 comments

Hi, I noticed if using images with different aspect ratios, during transitions there are sharp jumps in memory from 500 mb to 1 gb,I would like to correct this a little, you can tell me, this is due to inconsistencies of the aspect ratios? because you have this check in the code assert(abs(Double(image.width)/Double(image.height) - Double(targetImage.width)/Double(targetImage.height)) < 0.01)

alyfreym avatar Jul 25 '19 15:07 alyfreym

I don't quite understand your situation here. But the context may cache some unneeded resources if the render size changes a lot. Try context.reclaimResources() after each context.render(....).

YuAo avatar Jul 26 '19 04:07 YuAo