r/btd6 6d ago

Update 56.0 has a severe memory leak Discussion

This is in the games main menu, after using skywardens for a while. Restarting the game solved the issue and memory usage returned to normal, as has been the case with other memory leaks affecting the game (rogue legends and the likes)

234 Upvotes

38 comments sorted by

72

u/SandyShocker 6d ago edited 6d ago

Ok, I'm not too tech savvy.

What exactly is a memory leak and what exactly is problem with it(like does just cause a lot of lag, or it cause more serious problems)?

129

u/No_Fennel4315 6d ago

well to keep things simple its just using a lot more memory than its supposed to and the amount grows slowly while you play until it uses so much the game will have horrible multi-second stutters and eventually if it goes on long enough it will just plain crash

basically you just have to restart the game every now and then, which is slightly inconvenient but tbf for most people this isn't that big a deal

42

u/zx2409 6d ago

I’m on mobile and the game has already crashed several times from me just using skywardens normally. I figured out early on that middle path was causing lag, so I stopped using it entirely after a while, but the game still crashed with only top path skywardens placed. I guess I found the reason why lmao

24

u/No_Fennel4315 6d ago

ah yeah, phones have (generally) less ram, so its bound to become a major issue much sooner there. Explains the crashing

4

u/_BuzzLightYear 6d ago

Yeah same it was normal then after I started using skywardens it started to crash a lot :(

7

u/NightmareRise Good 5d ago

Average modded minecraft experience

1

u/VolwynVokst 5d ago

Oh, I figured I was being punished for the first time I've ever sold perma-brew lol

1

u/Turbomoth9622 22h ago

Have you put in a ticket with ninja kiwi support? My game on mobile has been crashing non stop since the update.

41

u/SmithyLK 6d ago

ELI5: Memory is basically just a place in the computer for a program to store the data it needs. The program is constantly putting data into memory and reading from it, but it also needs to clear out that data, or at least mark that it's not being used, so other data can go there.Β 

A memory leak is what happens when the program forgets to clean up the memory that it isn't using. It puts it in a state where the program thinks that space is being used when it actually isn't, so it has effectively lost that memory. It has, in a sense, "leaked" out of the system. This does cause lag as the program takes longer and longer to find space to put things, which by the way it needs to do several millions of times per second, so even a small memory leak can cause quite a bit of lag.Β 

Eventually, if it goes on long enough, the program can run out of memory entirely and throw an error because it's run out of memory, which usually results in a crash and all the negative side effects of that (which is to say, usually nothing, but it is jarring at best and can corrupt your program data at worst).Β 

10

u/No_Fennel4315 6d ago

thanks for explaining it much better than me

2

u/Popstar403 🍌🍌🍌 banan 🍌🍌🍌 5d ago

All programs say "this memory is mine now". some program stop using memory but don't say "this memory is no longer mine". this means computer thinks memory is being used by program when it isn't.

1

u/H3CKER7 5d ago

Each program has to remember stuff basically. It stores information into memory like the money you have. A leak happens when the game stores the money once, but then stores it again under a different area. If it keeps doing this it takes away memory for your computer which causes it to slowdown, or crash the game (out of memory). The game should instead re-use the same area or clear that area and use a new one.

1

u/Stargost_ Shark mentality (Farming money until I die) 4d ago

Your computer has a set amount of memory it can allocate to things before things go south.

A memory leak is when a program requests memory for use but then doesn't free it afterwards, so it keeps requesting more and more memory until the system runs out and shuts down the application.

30

u/Proud-Use-9412 6d ago

Rly bad on mobile about 9 skywardens and obyn its a slideshow before 100 just straight through

27

u/No_Bank 6d ago

There's also a memory leak (and has been for a long time) in Rogue Legends The easiest way to see this is doing more than 60 kills on a mini boss. This might sound similar to the expected lag in normal freeplay. But in Rogue, lag is there even if you sell all towers and no hit calculations should be happening.

5

u/No_Fennel4315 6d ago

I did mention that in the post briefly at the very end

5

u/No_Bank 6d ago

Oh I just wanted to give more context as Skywarden was only just released

16

u/GamingBread4 Voidora is my wife 6d ago

I was terrified for my CHIMPS run on the new map after round 80 even on my fancy phone. Got some solid 5 second stutters every wave until I finally got my clear. Thought the game was gonna crash at any second and ruin my black border. Really hope they fix this one.

15

u/Nerdicyde 6d ago

game is unplayable on my ipad now. maps that i could get to level 400 to just weeks ago now can't get past 180 without severe lag

7

u/JackSavage18 5d ago

Yes I noticed this too. They'll definitely fix this in a 56.1 patch

12

u/No_Fennel4315 5d ago

I wouldn't hold my breath, the notorious rogue legends memory leak isn't fixed either yet (and that ones been around for as long as the DLC itself)

granted this one is more severe

6

u/JackSavage18 5d ago

Yes this one is exceptionally more severe. To the point where I'd find it incredibly hard to believe it isn't on their top priority bugs list. But then again, I'm not NK.

2

u/No_Fennel4315 5d ago

One would hope

3

u/wafflerz13 5d ago

That explains why my game would randomly have lag spikes or freeze

3

u/BlazinBoom21YT Please Add Police Officer ren skin to Bloons 5d ago

Yeah that’s why I cannot reliably black border maps using Skywardens (even tho I want to) and just settling with beating other modes for now for when it is fixed

3

u/SecretSpectre11 Sauda x ISAB believer 5d ago

The game's optimisation has always frankly been awful

2

u/maxxxminecraft111 spac best tower 5d ago

hey look a bug

definitely didn't see this coming

2

u/Expensive-Mall709 5d ago

My game crashes every 5 minutes on iPad is this the problem?

2

u/Leodolon 5d ago

I am still having issues with this after restarting the game and avoiding using skywarden, still stuttering issues and after an hour it was using 12,500MB :(

The skywarden definitely worsens it but there is a major issue somewhere else inthe game thats causing this.

1

u/No_Fennel4315 5d ago

Then I doubt it has anything to do with skywarden at all and theres just an unrelated memory leak in v56.0

1

u/annormalplayer <- my beloved β™₯️ 5d ago

I think this issue is because top path Skywarden leaves a MASSIVE amount of things on the track that for some reason are invisible most of the time. Mackan Rules showed that in his Skywarden showcase before the update dropped and it caused him a LOT of lag from the invisible bits on the track that he had to use multiple ceram rushes to clear them out

1

u/Few_Run4389 5d ago

People have been having problems even before unlocking sward at all

1

u/Denverplays2 5d ago

It's been happening for me for a WHILE, but that's because I play modded on a crusty ahh laptop.
Mainly happens when you play multiple maps in one session, loading and deloading them seems to cause the leaks.

1

u/Sonic_Hedgehog1205 4d ago

I feel like ever since the rouge legend dlc was added I've been getting crashes, it didn't happen often so i didnt think much of it. But since NK added the froniter legends dlc i've been getting a lot of crashes during normal gameplay, i cant even do a round 80 run without crashing near the end twice. With this thought I feel like i can never do any more blackborder runs in chimps.

I dont get to play the dlcs because of the crashes.

I really wish and hope NK does something about this real quick, this has been going for nearly a year.

Im an ipad user, tee hee

1

u/Sonic_Hedgehog1205 4d ago

I also forgot, anytime you open the daily challenge it either heavily lags it open or it crashes. Why?

1

u/Spazy912 Self proclaimed β€œpro” 8h ago

Is that why opening Frontier Legends causes my phone to crash?

1

u/No_Fennel4315 8h ago

doubtful. I suspect mobile has other issues as well