Performance bug

I’ve just found a significant performance bug in code that handles pickables (i.e. items lying on the ground).

The reason for the problem is that the game tries to find a suitable inventory slot for every pickable in the world every frame, even if the pickable is far away from the player. This is a performance killer in creative mode, because player has around 1500 inventory slots (including creative items slots). So for every pickable, 1500 slots are scanned every frame. This takes some time.

As a result, if you have hundreds, or even just dozens of pickables floating around, it will kill the framerate.

I’ve just seen it in the profiler and almost fell off the chair. It must have been in the game since time immemorial! How could I have missed it all these years?

The good news is that it’s trivial to fix. If your game slows down to a crawl when there’s plenty of stuff lying around, just wait for the next version.

I am now putting finishing touches to a new exciting feature that has been requested more than once and was long long overdue. Can’t post any pictures, because it would be a dead giveaway this time :-)

The next version must be released before Christmas.

 

103 Comments

  1. Posted December 1, 2016 at 04:05 | Permalink | Reply

    Oh si primeroo yeah

  2. cokecrazy1214
    Posted December 1, 2016 at 04:07 | Permalink | Reply

    Multiplayer??

    • Posted December 1, 2016 at 04:53 | Permalink | Reply

      Lol, the age old “OMG MULTIPLAYER” comment.

      This has been with the community since before I was here.

      Kaalus “look at this picture of a new animal guys”

      Fans “OMG MULTIPLAYERS?!?!11”

      • ADAMRCMTB
        Posted December 1, 2016 at 12:51 | Permalink | Reply

        No because we saw the new animal already. In the last video.

        • Posted December 1, 2016 at 14:18 | Permalink

          Its a joke, that any time kaalus is making a surprise feature, people screams multiplayer in the comments

      • Posted December 1, 2016 at 19:34 | Permalink | Reply

        Perfect! LOL

      • Posted December 1, 2016 at 21:26 | Permalink | Reply

        I remember once something like… This example…

        Kaalus:”I’m currently working on a new weapon…”
        Random Comment: “It’s Multiplayer!?”

    • Posted December 1, 2016 at 15:56 | Permalink | Reply

      I doubt he’d add multi-player at the tail end of an update. When he adds multiplayer I’m sure we will know way before he releases the update.

  3. Posted December 1, 2016 at 04:18 | Permalink | Reply

    That’s hilarious dude

  4. Posted December 1, 2016 at 04:19 | Permalink | Reply

    Is MULTIPLAYER really? I’m so exited, o backpacks

  5. Posted December 1, 2016 at 04:19 | Permalink | Reply

    Hey I also noticed a stutter on galaxy S7 when breaking blocks. Not sure if just mine yet. Anyone else?

  6. Posted December 1, 2016 at 04:22 | Permalink | Reply

    Fishing? Maybe. It would explain him adding more ocean wild life and it’s been asked for plenty times

  7. Posted December 1, 2016 at 04:24 | Permalink | Reply

    YES BEFORE CHRISTMAS FINALEEEEEE!!

  8. OvMex740
    Posted December 1, 2016 at 04:26 | Permalink | Reply

    Yes. Backpacks, native people, I don’t know. But, anyway, this update will be great!

  9. Posted December 1, 2016 at 04:29 | Permalink | Reply

    Yes! But what about slab texture bug?

  10. Sephiths
    Posted December 1, 2016 at 04:32 | Permalink | Reply

    *Crosses fingers* (multiplayer please)

  11. Posted December 1, 2016 at 04:36 | Permalink | Reply

    Villagers? I don’t care if we don’t have multiplayer in next version..but I hope Villager will be added so we will not alone

  12. Posted December 1, 2016 at 04:39 | Permalink | Reply

    Also Kaalus! I hope you will be keep moving forward and you will no.1 SurvivalGames In PlayStore :D

  13. Posted December 1, 2016 at 05:28 | Permalink | Reply

    multiplayerconfired

  14. Posted December 1, 2016 at 05:29 | Permalink | Reply

    multiplayer confirmed*

  15. Posted December 1, 2016 at 07:12 | Permalink | Reply

    Thanks Kaalus for saying the most awaited ETA for release. Christmas and New Year Furnitures Incoming like a blast.

  16. Posted December 1, 2016 at 07:14 | Permalink | Reply

    So wait,

    Painted wires are present,

    Painted Stones and Planks are also present.

    Does that mean that we have now having painted wire-through blocks?

  17. Posted December 1, 2016 at 08:23 | Permalink | Reply

    I’m glad that this Performance bug was resolved, sometimes was really annoying to see a slow frame rate after a couple of big explosions due to the huge amount of packables everywhere…

    About the new feature… More generated structures? Piston or Piston-like blocks? Poisoning? Humans or NPCs?

  18. Posted December 1, 2016 at 09:05 | Permalink | Reply

    Please add miner cart

  19. Posted December 1, 2016 at 09:09 | Permalink | Reply

    Great news. It would be great if it were Multiplayer, but I highly doubt it.

    – The new feature might be that the dispenser might act like the chest in that if you throw something at it, it might pick it up. In this way you can transport items over long distances or from down in a mine. Also a chest might be used to feed a dispenser..

    – Another option might be that stairs etc might be used underwater. This is logical to follow from the sea creatures and plants.

    – Maybe an option would also be that electronics can be shrunk with the furniture option. This however has not been requested so many times and is unlikely.

    – The most asked for feature is still multiplayer and maybe it might still happen:

    Features poll


    http://www.rkursem.com/poll/view.php?cmd=view&id=d6eaf39be002006ad

    – One feature that shouldn’t take too long to do, is the ability to dig and build further distances, especially in creative mode. Let’s hope this feature makes it soon as well.

    – Rotatable slaps should be available now.

    – Paint able glass (as well as other items like pressure plates, doors etc.) might be a real possibility of what Kaalus is talking about. This might just be the feature he is mentioning.

    – Maybe we’ll see different kinds of wooden planks etc. This “wood” be nice.

    – Then my last guess: Kaalus said: “Can’t post any pictures.” He often has a play on words and therefore the possibility is there that he is introducing paintings or framed pictures, maybe using screen captures. This is a wild guess though.

  20. Posted December 1, 2016 at 09:27 | Permalink | Reply

    Multiplayer? or Fishing rods?
    if boat and horse are possible, an aircraft?
    a car? hmmm.. my house is empty.
    furnitures, here I wait!
    #myFirstComment

  21. Posted December 1, 2016 at 09:59 | Permalink | Reply

    My post disappeared.

    The following could be the new feature:

    – Multiplayer – It was by far the most requested, but it is unlikely that he is doing it, but we can hope.
    – Painted glass and other objects. This is very likely.
    – Stairs and other stuff under water. It should be possible now
    – Further digging and building distance especially in creative.
    – Dispensers reacting like chests where if you throw an item at it, it picks it up. This will make long distance transfer of items possible. Also chests becoming feeders for dispensers.
    – Shrinking electronics with furniture feature.
    – holding a torch giving light as you walk.
    – Kaalus sometimes play with words. He said: “Can’t post any pictures,” so maybe he is adding framed pictures, maybe from screenshots.
    – Rotating slabs

    • Posted December 1, 2016 at 16:06 | Permalink | Reply

      I’d say the problem with most of those are
      A) They aren’t exciting. I mean stairs under water? Painted glass?
      B) They aren’t “long long overdue” some of those have only been requested within the last year or so. Like the dispensers picking up blocks.

      But of course what I say means nothing though, so all of these could be true.

      • Posted December 1, 2016 at 18:27 | Permalink | Reply

        The problem is what does “long overdue” mean? It has been a year since the last update. Some might say that is long. Yes, I also do not think that multiplayer will be the feature, but it is long overdue and we can all have some hope. It has been a year and you never know what Kaalus has all done in this year. He has been very very quiet and I do not think he was counting his toes.

        Using the term exciting might be exciting for one person and not so exciting for the next. Having coloured windows is actually quite exciting for creative builders, but for survivors not so much. What would be exciting for you?

        I was going through the poll of what people wanted and these were what I found to be a possibility. It is OK to say that I’m wrong and you are probably right, but it usually is better not to just say that somebody is wrong but also give an alternative.

        • Posted December 1, 2016 at 22:49 | Permalink

          He said “long long overdue” I feel like most people could agree since he used two longs it would be at least over a year. Also, exciting, yeah I can see your point but I thought it will be something everyone will find “exciting” I feel like cool or neat would fit colored glass and under water stairs better. However, I did actually give an alternative. I said fishing because that would give a reason as to why Kaalus might have randomly decided to spruce up the ocean floor. Also, fishing has been asked for for a looooooong time, and I think it was overdue as soon as he released the row boat with no fishing poles. Like I said though, this may be wrong. Lastly, sorry if I came across as rude. I try to sound nice in comments but with text it’s just so hard since you can’t see my facial expressions. I was just critiquing what your suggestions were so we could try to narrow it down, and I actually wouldn’t mind feedback myself. I couldn’t care less about being right or wrong.

        • Posted December 2, 2016 at 05:36 | Permalink

          No problem. I came over a bit strong as well. Long long does sound quite long.

          Maybe it is fishing. I’m just not that excited about that though. It would be a good thing though.

          If we look at long long, then only really multiplayer fits. The “more than once” might be a diversion to not guess it. He could have said “the most”. We can hope, even though it is unlikely.

        • Posted December 2, 2016 at 16:53 | Permalink

          I seriously doubt he’d add multiplayer as a “by the way here’s something cool” feature. I think we’d know about multiplayer way before the update would come out not half a month before. Basically as long as we’ve known about furniture.

      • Posted December 2, 2016 at 02:33 | Permalink | Reply

        Another problem with this is, Multiplayer is highly requested however it’s impossible because Kaalus said himself that multiplayer wouldn’t be coming out until single player was finished in the FAQ page.

  22. Posted December 1, 2016 at 10:58 | Permalink | Reply

    Hmmm i think this new thing is colored wood!

  23. Posted December 1, 2016 at 11:19 | Permalink | Reply

    Awesome thanks kaalus

  24. Jean Martin
    Posted December 1, 2016 at 12:22 | Permalink | Reply

    I’m playing survivalcraft on my s5 mini and every time the game started to lag when a few items where on the ground. Nice to see that it’s fixed in 1.30

  25. Posted December 1, 2016 at 12:31 | Permalink | Reply

    hi kaalus
    my name is felipe, i have any ideas for surivalcraft

    i wait you answer me, thanks

    the first

    1:as it is unrealistic potions (as in minecraft) thought, in particles of bugs.
    for example: fireflies, which they would serve to see in the dark for a some time
    and also would have dangerous
    for example:
    mosquitoes: If you get nauseous sting you for a while

    2:a chat room where we can talk online to avoid creating wordlchat
    3: change texture of items
    for example: machete (sword)
    4: name of the player
    5: option in the adventure mode: saved-sleep where when we die, all this as when we sleep (everything back into place, from the point asleep
    six and the end
    6: please, please, please, change language, please, I speak spanish, very hard understand english
    7:pleaseplease please please please add: explication of how you die in the game for example…: you died by a lion
    8: kaalus, the snow block, don’t exist in the game, the snow block just is a carpet no block sorry for my english)
    9:kaalus female’s clothing

    thanks you for reading

    I hope you read

    bay kaalus

    by: felipe

    Pipe C

    • Posted December 1, 2016 at 12:44 | Permalink | Reply

      I have to agree with the point Number 5… That would be awesome for Adventure maps!

    • Posted December 1, 2016 at 22:15 | Permalink | Reply

      Very good English. I like most, but not #2. Other games with chat become places with bad, rude people. Survivalcraft community works hard to keep app (community content) clean, and the forum is a safe place too. Chat would ruin game, in my opinion

  26. ADAMRCMTB
    Posted December 1, 2016 at 12:38 | Permalink | Reply

    Awesome Kaalus! And for all you Multiplayer people, I am afraid, the answer is probably no. Unless I am wrong (I hope I am)!

    • Sephiths
      Posted December 1, 2016 at 14:50 | Permalink | Reply

      probably, but there is still hope :P

  27. ReTreyn
    Posted December 1, 2016 at 13:09 | Permalink | Reply

    animals and their iron skin? :) https://www.dropbox.com/s/6vuhml5elqn596v/Survivalcraft%202016-12-01%2022-03-47.jpg?dl=0

  28. Posted December 1, 2016 at 13:33 | Permalink | Reply

    I’ve actually seen that glitch if theres alot of items lying around

    • Posted December 1, 2016 at 13:39 | Permalink | Reply

      I think multiplayer is in the next update not this one

  29. Posted December 1, 2016 at 14:18 | Permalink | Reply

    On some 64 bit iOS devices, certain things like matches do not have a well-erased outline. Also, bow graphics for bow on iPad Mini 2 and iPhone 6 need to be fixed. Also, I request 3D models for Sulphur, Malachite, Saltpeter, Coal, Stone Chunks, Germanium, Gunpowder, and Match.

  30. Posted December 1, 2016 at 14:32 | Permalink | Reply

    Awesome! Kipidap!

  31. Posted December 1, 2016 at 15:32 | Permalink | Reply

    #ForçaChape MULTIPLAYER

  32. Posted December 1, 2016 at 16:37 | Permalink | Reply

    Fishing Rods will probably be the next thing kaalus will add, this would suit the new aditions to sea life. But I still hope he will add saddle bags :)

  33. Posted December 1, 2016 at 18:36 | Permalink | Reply

    STOMP them bugs! Looking forward to the release and the surpise new feature whatever it is :)

  34. Luiz do Nascimento
    Posted December 1, 2016 at 20:03 | Permalink | Reply

    Bom, na minha opinião, não haverá multplay nessa atualização. Bom só virá com as funções que havia mostrado anteriormente. E sim o multplay seria legal, ainda mais se fosse via local…..

  35. Posted December 1, 2016 at 21:22 | Permalink | Reply

    A lo que entendí la 1.30 saldrá antes de navidad, y la 1.31.0 tendrá algo que fue pedido de hace años, si estoy mal corrojanme, o no, podrá ser que traiga multiplayer o algo que quiero y que se ocupa es una mochila, eso si, esa espera hasta navidad va hacer una tortura al saber que cada día pasa mis ansías aumentan para pode jugar la 1.30, solo dos malditas semanas infernales de espera o incluso 3, un poco más de tiempo no hace daño o si?, así que kaloo gracias por actualizar más seguido, eso nos ayuda bastante, y quiero felicitarte por el gran juego que hisiste y que lo actualizas para nosotros, sin más iré a una esquina de mi cuarto en poción fetal para esperar la 1.30 muchas gracias 👌😃

  36. Posted December 2, 2016 at 00:28 | Permalink | Reply

    I doubt (though hope) that it’s multiplayer.
    It’s probably a smaller feature such as breeding.

  37. Posted December 2, 2016 at 00:30 | Permalink | Reply

    Is it bison?

    • Posted December 2, 2016 at 02:38 | Permalink | Reply

      The bison was just a teaser as a new animal in the video. This is going to be a feature as of which will be a new addition to the game. Also it will not be multiplayer because that won’t be added until single player is finished which is said in the FAQ page

      • Posted December 2, 2016 at 10:38 | Permalink | Reply

        You are probably right, but what does it mean when single player is finished? When? What criteria is “finished?” That is what makes it problematic. Must there first be mine carts, or maybe five new animals or fishing rods or maybe farming with animals? And then, when multiplayer comes, dis that mean no more development for single player. It is not as simple. For me, with this update, we might as well declare single player finished. It is such a well polished and multi featured game by now that I would not typify it as unfinished.

        Just a thought, but you are probably right that he is not finished yet, whatever that means.

      • Posted December 3, 2016 at 08:49 | Permalink | Reply

        An earlier post of mine:

        Whenever multiplayer is mentioned the default response seems to be something similar to this: “Kaalus said he will add multiplayer when single player is finished.” “Finished” seems to be used a lot. This is what it says on the FAQ:

        Q: When will you add multiplayer to the game?

        Multiplayer is the most often requested feature, and it also scored the highest in the feature request poll (https://kaalus.wordpress.com/2012/01/11/features-poll). That said, it is also a massive thing with a high risk that would take X months to complete while Survivalcraft stands still. Therefore, before I jump in I must be reasonably sure that low hanging fruit (the easy features that give a lot of bang for the time spent) are addressed first. Bottom line is I can’t give a precise date.

        I do not need to explain that this is not the same as “when single player is finished” Sorry, it just seems a lot of people have misinterpreted this/copied what other people have said.

        • Posted December 3, 2016 at 17:21 | Permalink

          Thanks for the research. It clarifies a few things.

          We can conclude that it is probably not multiplayer. There is still the possibility that it might be, because he said that survivalcraft would come to a standstill for x months. He was basically finished with the new feature in the beginning of the year and then went very quiet. Maybe he was working on mp? Probably not, but who knows.

          It is up in the air what the newest feature will be. We can just speculate. I’ve given my guesses, but might be wrong. Thw female thing sounds like it could be long long overdue.

  38. Posted December 2, 2016 at 10:25 | Permalink | Reply

    Well first of all I’m super excited to hear this will be out for Christmas, just got my daughter a new laptop for her birthday and bought her her own copy of survivalcraft and now she is hooked! So this will be a good chance to play the update wit her. Second it’s most definitely a fishing rod mostly due to the fact that it’s a survival game….. Annnnnd fishing rods are way easy to craft. New sea life… Time spent of water animations in the update, he can’t show us because it’s to obvious and it is well over due lol.

    I’m super excited about this update, I was thinking that adding the “furniture” feature to the game is a little bit like adding nanotech to the game world. I have soooooooo many awesome ideas, I can’t wait to test them out! Again your awesome kaalus keep up the good work.

  39. Posted December 2, 2016 at 10:41 | Permalink | Reply

    Please please before release the update do a fishing rod it’s very important.

  40. Posted December 2, 2016 at 10:45 | Permalink | Reply

    add a bag to carry more things,make trees fall down when cut down,let the camp fire cook the meat,fishing rod,lead for the donkey and horse,horse bag and cart,climbing rod,get sick,bleeding,broken bones,cure,get thirst,urinating and pooping,snakes,chickens,make the bear stand and make the animals look real,let the animals breeding,hold a light in the left hand,werewolfs break the house,if u can add blood,make iced place at winter Season and high mountins,let it rain in desert,wind,sea waves,small trees like apple,cherry,berry,strewbarry,orange,banana,get strong in fighting,running,swimming،Make a chance to stab the animal and die,Bottle to drink,small led light,take the dead animals to home to chopping it and cook it,use the bones,start the game with a knife,multiplayer,female Character،grow and cut the hair,let the Character sprint,herbs to make cure and cooking,zombies and deserted towns and when shoot a gun the zombies come to shooting sound,and getting sparkle rocks to make fire, don’t let the electricity come from switch it’s stupid let it comes from batteries or sun solar and let the battery charge and die. Pls add this things.

    I dont think zombie is a gd  idea so just add the rest to let the game be more real at survivng

    I added this I hope u like my ideas,and sorry my launage is bad.

    • Posted December 2, 2016 at 10:56 | Permalink | Reply

      You were doing very well until the zombies part, but I do see you also realised it. Survivalcraft is about realism for me I don’t even like the werewolves. Good ideas though.

  41. Posted December 2, 2016 at 14:07 | Permalink | Reply

    i bet one of these will be next feature:

    -npc
    -pistons
    -random generated structures

    i had high hopes for multiplayer but im not so sure anymore ^^

  42. Stanimus
    Posted December 2, 2016 at 15:10 | Permalink | Reply

    So, he found the pickables bug, now I hope he finds the stairs placement bug…

  43. boredidentity
    Posted December 2, 2016 at 17:53 | Permalink | Reply

    Multiplayer: Very very unlikely. That is not a nifty little feature, that is practically a different app.
    NPCs: Quite unlikely. It is not ‘long overdue’, and again, Kaalus would be sure to do a good job of it – which would take quite a while.
    Generated Structures: Unlikely. More likely than NPCs, however, because NPCs need Structures, but not the other way around. This would also take a lot of time and effort, and would likely get its own update.
    Embedded screenshots: Very unlikely. In this update, we are already getting the ability to put pictures on our walls. Why would he one-up himself?
    Holdable Torches: Very likely. This has been requested quite a few times, is long overdue, would be a dead giveaway, and would be a nice feature for the survival people, who are feeling a little neglected. Still, he would have to update lightmapping every time the player moves, which would make for a decent performance drop.
    Fishing Rod: Very likely. This also fits all of the hints.
    Pistons: Somewhat unlikely: With this update, we should already be able to do that. Why give it to us when we can build it? But it’s still possible.

    Pickables bug: I wonder if explosions will be smoother now?

    • colbyfranknorth
      Posted December 2, 2016 at 18:22 | Permalink | Reply

      I agree! Not too many people have been wanted holdable torches, but they are long overdue and would be a great add!

    • Posted December 2, 2016 at 19:47 | Permalink | Reply

      Holding Torches – now that bombs and flaming arrows and debris are supported, could be, could be. What great let’s plays that would make!

  44. Posted December 2, 2016 at 19:01 | Permalink | Reply

    BUG: This one I think only occurs in the iOS version of the game. When it is night, the stars are missing! Again, this only applies to the iOS version of the game.

    • Posted December 2, 2016 at 19:44 | Permalink | Reply

      Confirmed on iPhone 6 version 10.0.2 (14A456). Does not occur on my Kindle. Create a Creative world set to night. Clear sky with moon, no stars.

    • Posted December 2, 2016 at 22:51 | Permalink | Reply

      Yeah, this happens on my iPhone 5S, my iPad Air 2 and iPod 6. All running iOS 10.0.2. Another problem with night is it gets REALLY laggy when you look at the moon with iOS devices, like down to 20-30 FPS.

  45. Posted December 2, 2016 at 20:56 | Permalink | Reply

    I really like the game kaluss! I have some suggestestions if you need any…And opitions

    1. Multiplayer is a good idea, the only problem is that bad people swear and do stuff like that…SO my suggestion is that IF theres multiplayer, there a report player button.
    2. Villages is a good idea, but it may be a bit glitchey
    3. Possibly beds. I know your adding custom blocks, but beds is just cool.
    4. Maybe a water bar and water related stuff?
    5. more ores maybe?

  46. Posted December 2, 2016 at 21:15 | Permalink | Reply

    Female character!

  47. Posted December 2, 2016 at 21:58 | Permalink | Reply

    Multiplayer on new villages

  48. Posted December 3, 2016 at 16:37 | Permalink | Reply

    Maybe it’s environmental disasters, exposure to the elements, and thirst. Like he said a while ago.

  49. Posted December 3, 2016 at 16:53 | Permalink | Reply

    Hi @Kaalus! I’m a fan of Ur awesome game, but -excuse me to say that- Ur game sucks without Multiplayer idk why u r not adding a multiplayer yet, but this multiplayer thing -in my opinion- better than any update u could think of. I highly recommend u to consider this update a first priority.

  50. Posted December 3, 2016 at 17:22 | Permalink | Reply

    Guys I just posted a new world with tons of furniture ideas. It would be great if you could download it, add something and repost it. It’s called furniture 4 update NEW look for it tomorrow since it takes a while to post. I’ll add some screenshots to keep your hopes up!

  51. Posted December 3, 2016 at 17:23 | Permalink | Reply

    Guys I just posted a new world with tons of furniture ideas. It would be great if you could download it, add something and repost it. It’s called furniture 4 update NEW look for it tomorrow since it takes a while to post. I’ll add some screenshots to keep your hopes up! K

  52. Posted December 3, 2016 at 17:31 | Permalink | Reply

    How do I add screenshots

  53. Posted December 3, 2016 at 20:10 | Permalink | Reply

    There is a small thing that bothers me about Furniture…

    From the first Furniture Video, we know that Water and Magma can be used to make furniture but… How does they work when used on furnitures?

  54. Posted December 3, 2016 at 22:32 | Permalink | Reply

    lava lamps and fishtanks!

  55. Posted December 3, 2016 at 22:40 | Permalink | Reply

    perhaps

  56. Posted December 4, 2016 at 08:01 | Permalink | Reply

    dead giveaway eh? requested more than once? Long overdue? well maybe mcpe had this a few years ago…. Is it? Multiplayer?

Leave a reply to Tutiefruits Terry Cancel reply