Question about the background layer

Hi guys! just one question.
Do background sprites add lag to the game if you add a lot of them? (say about 2k.)

Yup, especially with parallax and background repeat…

Not background repeat, in fact you can use that to reduce lag

Background repeat with infinite X and Y tho….
IMG_7624

1 Like

I have a bundle on performance fixing, do you want it? (it decreases lag by a pretty good amount)

naw jk I Don’t take no for an answer

{"data":{"behavior":{"v":"2","nodes":[{"inputCount":1,"outputCount":3,"name":"Preformance Fixer","behaviorType":"logic.NodeGroup","x":0,"y":336,"group":"","id":"f950ff8bd9613d40","notes":"Fixes preformance.","n_o":1,"isMenuItem":false,"originBundleId":"b72a4594d4edd944","ownBundleId":72,"originPk":72,"v":2,"version":2},{"inputCount":0,"outputCount":2,"name":"In View","behaviorType":"logic.triggers.InView","x":90,"y":80,"group":"f950ff8bd9613d40","id":"f950ff8c715cee47","notes":"Delete unnecessary parts that you won't need.","n_o":1,"buffer":1000},{"inputCount":2,"outputCount":2,"name":"Enabled","behaviorType":"logic.properties.Enabled","x":360,"y":-32,"group":"f950ff8bd9613d40","id":"f950ff8cb33a9645"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":360,"y":64,"group":"f950ff8bd9613d40","id":"f950ff8c2e28c145","startVal":100,"tag":"Out of view","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":360,"y":176,"group":"f950ff8bd9613d40","id":"f950ff8db1756a49","startVal":0,"tag":"In view","roundMode":1},{"inputCount":1,"outputCount":1,"name":"Alpha","behaviorType":"logic.properties.Alpha","x":540,"y":96,"group":"f950ff8bd9613d40","id":"f950ff8dec05154b"},{"inputCount":3,"outputCount":3,"name":"Animation","behaviorType":"logic.properties.Animation","x":360,"y":496,"group":"f950ff8bd9613d40","id":"f950ff8d88bce047","notes":"Stops animation when out of view","n_o":1,"animationName":"My Animation","loop":false,"playAll":false,"priority":0,"lastFrameSticky":false},{"inputCount":1,"outputCount":1,"name":"Blending","behaviorType":"logic.properties.Blending","x":540,"y":320,"group":"f950ff8bd9613d40","id":"f950ff8e5aecd940"},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":360,"y":272,"group":"f950ff8bd9613d40","id":"f950ff8e23443944","startVal":0,"tag":"In view","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":360,"y":384,"group":"f950ff8bd9613d40","id":"f950ff8e9e03184c","startVal":4,"tag":"Out of view","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":360,"y":-128,"group":"f950ff8bd9613d40","id":"f950ff8e58e6cf46","notes":"(Original Dist)","n_o":1,"startVal":100,"tag":"in view","roundMode":1},{"inputCount":3,"outputCount":1,"name":"Number","behaviorType":"logic.logic.Value","x":360,"y":-240,"group":"f950ff8bd9613d40","id":"f950ff8e66abd542","startVal":15,"tag":"Out of view","roundMode":1},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":540,"y":-192,"group":"f950ff8bd9613d40","id":"f950ff8f992fbe47","portId":"f950ff8bd9613d40o0","tag":"NewDist","dataType":2},{"inputCount":0,"outputCount":1,"name":"Bundle Input","behaviorType":"logic.NodeGroupInput","x":180,"y":-160,"group":"f950ff8bd9613d40","id":"f950ff8fb7fb0342","portId":"f950ff8bd9613d40i0","tag":"ProxDist","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":540,"y":-16,"group":"f950ff8bd9613d40","id":"f950ff8f1abb1746","portId":"f950ff8bd9613d40o1","tag":"In","dataType":2},{"inputCount":1,"outputCount":0,"name":"Bundle Output","behaviorType":"logic.NodeGroupOutput","x":540,"y":192,"group":"f950ff8bd9613d40","id":"f950ff8f4d025f49","portId":"f950ff8bd9613d40o2","tag":"Out","dataType":2}],"links":[{"input_id":"f950ff8e58e6cf46i1","output_id":"f950ff8c715cee47o0"},{"input_id":"f950ff8cb33a9645i0","output_id":"f950ff8c715cee47o0"},{"input_id":"f950ff8f1abb1746i0","output_id":"f950ff8c715cee47o0"},{"input_id":"f950ff8c2e28c145i1","output_id":"f950ff8c715cee47o0"},{"input_id":"f950ff8e23443944i1","output_id":"f950ff8c715cee47o0"},{"input_id":"f950ff8d88bce047i0","output_id":"f950ff8c715cee47o0"},{"input_id":"f950ff8e66abd542i1","output_id":"f950ff8c715cee47o1"},{"input_id":"f950ff8cb33a9645i1","output_id":"f950ff8c715cee47o1"},{"input_id":"f950ff8db1756a49i1","output_id":"f950ff8c715cee47o1"},{"input_id":"f950ff8f4d025f49i0","output_id":"f950ff8c715cee47o1"},{"input_id":"f950ff8e9e03184ci1","output_id":"f950ff8c715cee47o1"},{"input_id":"f950ff8d88bce047i1","output_id":"f950ff8c715cee47o1"},{"input_id":"f950ff8dec05154bi0","output_id":"f950ff8c2e28c145o0"},{"input_id":"f950ff8dec05154bi0","output_id":"f950ff8db1756a49o0"},{"input_id":"f950ff8e5aecd940i0","output_id":"f950ff8e23443944o0"},{"input_id":"f950ff8e5aecd940i0","output_id":"f950ff8e9e03184co0"},{"input_id":"f950ff8f992fbe47i0","output_id":"f950ff8e58e6cf46o0"},{"input_id":"f950ff8f992fbe47i0","output_id":"f950ff8e66abd542o0"},{"input_id":"f950ff8e58e6cf46i0","output_id":"f950ff8fb7fb0342o0"}],"frames":[]}}}

Thanks guys. That helped. (@eee_team can say that the bundle did help!)

1 Like

I’m pretty sure that just means the background is bigger than the screen which would not be compatible for repeat. Backgrounds overall does not consume much performance unless your using a lot of objects with logic like expressions.

2 Likes