Bacon2D/Bacon2D

ImageLayer fails to render on nexus 4 when layerType = Mirrored

kenvandine opened this issue · 2 comments

This works fine when layerType = Infinite. Probably something to do with how the mirrored effect is created.

+1 on this. Actually, for the mirrored effect, we create an image 2 times bigger than the source image (only for the width for now), and send it to the OpenGL renderer. This seems to be the problem on some devices that have a limited memory when the source image is big.

An ideal solution for this is to use only the source image as input and handle the mirrored effect direct with the shader.

I played around with this a bit, if I make the image smaller Layer.Mirrored works.