#image layout bug

1 messages · Page 1 of 1 (latest)

high sapphire
#

when i am creating image displays i am making blocks that are further away render first. but for some reason when i try and clear past chunks it causes the layout of the other chunks to be messed up. i have managed to figure out that its because i am destroying the past images because if i hide them or anything else that is not :Destroy or = nil its layout is fine. now i could just make custom Zindex values or just recreate all the chunks but i want your guys options')

lost oyster
#

Instead of destroying images you should keep them in an object pool and re-use them for new chunks

#

creating and destroying lots of instances does not make the garbge collector happy

#

Its very late for me so apologies if this doesn't apply

#

also set parent after you configure the instance