Some technical stuff

One of the side effects of the bugfix for Bay Trail devices is disabling of terrain vertex buffer/index buffer caching. I am worried about that, and I was wondering how much effect it will have on framerate consistency.

I made some measurements on Nexus 4 at 256 visibility range (i.e. heavy load). The table below contains standard deviations of frame times and percentages of frames above 100ms (i.e. stuttering).

Uncached (1.29.2) Cached (1.29.1)
Frames stddev >100ms % stddev >100ms %
0 0.37 1.6 0.124 0.4
250 0.26 0.4 0.434 1.6
500 0.236 0.4 0.468 0.4
750 0.322 1.2 0.371 0.8
1000 0.249 0.4 0.342 0.8
1250 0.273 0.4 0.397 0.8
1500 0.349 1.2 0.317 0.8
1750 0.417 1.2 0.507 0.8
2000 0.38 2 0.47 1.6
2250 0.31 0.8 0.42 2.4
2500 0.306 1.2 0.209 1.2
2750 0.222 0.8 0.405 1.6
3000 0.371 2.4 0.486 1.6
3250 0.402 2 0.321 0.8
3500 0.265 1.2 0.322 0.4
3750 0.293 2 0.363 1.2
Average 0.314 1.2 0.372 1.075

Each row is calculated from 250 frames, the entire table is 4000 frames.

As you can see, there’s not much difference at all. In the uncached scenario 1.2% of frames were above 100ms, while in the cached scenario 1.075%. I suspect this small difference is well within the measurement error. Especially that standard deviations point the other way, uncached is actually more consistent when it comes to frame length.

Sorry for boring you with this technical stuff :-) Should be releasing full version to Google Play soonish.

 

 

48 Comments

  1. Posted January 14, 2016 at 15:05 | Permalink | Reply

    I love the technical stuff. I am a programmer but in a different type of industry so its cool to see the behind the scenes of a mobile game development process. Would love to see some examples on how you accomplish some of the hurdles you come across. I would also love to see how you program around the explosions and particles.

  2. Posted January 14, 2016 at 15:14 | Permalink | Reply

    Kaalus your work simply amazes me at times. There’s Mojang on one hand, which can’t get PC crafting on mobile and here’s Survivalcraft with nearly as many features as PC Minecraft but running smoothly on most devices. You’ve got to give credit where credit is due.

  3. Posted January 14, 2016 at 15:15 | Permalink | Reply

    I love the tech you stuff. Thanks for all the efforts and creative changes Klaaus.

  4. Posted January 14, 2016 at 15:26 | Permalink | Reply

    The technical stuff isn’t really that boring. It’s what makes the game.

  5. Posted January 14, 2016 at 15:30 | Permalink | Reply

    Can’t wait for full version to play nonstop now! 😆

  6. MTB adventures/RCs to the limit
    Posted January 14, 2016 at 15:52 | Permalink | Reply

    Can’t wait for he release on IOS. Keep it going Kaalus!

  7. Blocky Warrior
    Posted January 14, 2016 at 17:00 | Permalink | Reply

    Go Kaalus!!

  8. Posted January 14, 2016 at 17:23 | Permalink | Reply

    I do like the technical stuff as well but anyway:

    I’m going to make a features poll. Reply to this comment to suggest a feature. I’ve already got:

    More animals
    Multiplayer
    Electric block interactions (e.g. pistons/conveyors)
    Thirst
    Taming
    Transport (e.g. minecarts)
    Baby animals
    More electrics.
    More world generation options.

    … I’ve also got another (probably) trivial change to suggest. Could you make it so that you can see the seed of a world generated with a random seed.

    • Posted January 14, 2016 at 18:22 | Permalink | Reply

      They all sound awesome…guess I’d want Terrain first, then minecarts, then thirst.

    • Posted January 14, 2016 at 21:24 | Permalink | Reply

      Multiplayer would be top for me, then electronic block interactions, then more animals.

    • Posted January 14, 2016 at 22:59 | Permalink | Reply

      I’d chose conveyers and pistons first. Then more electrics.

  9. Posted January 14, 2016 at 17:58 | Permalink | Reply

    I don’t like to ruin your relief Kaalus, but I felt the need to perform a “paired sample T-test” on your results and there IS a significant difference between the cached an uncached version.

    • Posted January 14, 2016 at 18:13 | Permalink | Reply

      Not sure what this test does. Does it mean that my statistical hypothesis that there is no perceivable difference for the end user with both lists of frame length variance is invalid?

  10. Posted January 14, 2016 at 18:02 | Permalink | Reply

    BUG……
    Boats can’t be placed on water

  11. Posted January 14, 2016 at 18:17 | Permalink | Reply

    Interesting… Glad we have people out there like Kaalus who knows and thinks about this stuff, otherwise we wouldn’t have amazing games like Survivalcraft!!!!

  12. Posted January 14, 2016 at 18:24 | Permalink | Reply

    People in game would be good idea. I think there should be two types of them- Enemies and Npc. In real life there are also lonely people want to survive or trade

  13. Posted January 14, 2016 at 18:41 | Permalink | Reply

    in version 1.29.3 night the animals do not attack as always, are like day his ostilidad

  14. Posted January 14, 2016 at 18:56 | Permalink | Reply

    The poll is out.

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

    You can add your own answer.

    • Posted January 14, 2016 at 19:04 | Permalink | Reply

      Could you add the option “More Generated Structures”? Probably would be an interesting choice…

      • Posted January 14, 2016 at 19:07 | Permalink | Reply

        Added but by the time I did, I think I hid yours… Might have to change your vote to the new one. First time I’ve used this software…

  15. Posted January 14, 2016 at 19:11 | Permalink | Reply

    I need to say that i love the new colors of LEDs and displays. They looks awesome! Thanks :)
    One question – if i set delay(on delay gates) to 0 there is no delay at all? So it behaves like a normal wire?
    Or its like u said in some earlier post, that every devices have “1 tick” delay ?

    Sorry 4 my english

    • Posted January 14, 2016 at 19:16 | Permalink | Reply

      The gate has 1 tick of delay plus whatever is selected on the gate – it does not behave like wire. Well spotted, maybe I should change the UI to go from 0.01 to 2.56.

      • Posted January 14, 2016 at 19:36 | Permalink | Reply

        Is it possible to make it behaves like normal wire when delay is set to 0? This would be helpfull for lot of circuit designs.

        • Posted January 14, 2016 at 20:24 | Permalink

          Unfortunately not :-( This would be very difficult.

        • Posted January 14, 2016 at 21:10 | Permalink

          How about making an adjustable real time clock? So you can have a stable repetitive streem of 1s and 0s without the chance that your perfectly calebrated clock clock cercit (made with delay Gates and not gates) going out of sinc when you leave the world or visibility range and then re entering the world or airea …… This lack of stable electric clock’s has crippled many of my world’s and game attempts

  16. Posted January 14, 2016 at 19:23 | Permalink | Reply

    BUG: I found a floating tree:

    • Posted January 14, 2016 at 21:45 | Permalink | Reply

      I’ve seen that before 1.29, but is still a bug indeed. Also were those were oak trees in snowy area in background? So that bug has not yet been fixed.. oak trees in the snowy areas look horrible in my opinion Lol.

      • Posted January 15, 2016 at 14:51 | Permalink | Reply

        i found a floating grass block and a floating patch of stone in like 20 block high

  17. Posted January 14, 2016 at 19:35 | Permalink | Reply

    I have changed the poll so that you can give multiple answers.

  18. Posted January 14, 2016 at 20:48 | Permalink | Reply

    Plz make the update for kindle plz

    • Posted January 14, 2016 at 22:51 | Permalink | Reply

      The update is already for the kindle. Or atleast the fire kindle

  19. Posted January 14, 2016 at 20:54 | Permalink | Reply

    BUG!
    Something when you shot an arrow to an animal, due to the bouce, there is a chance that the arrow hits the animal two times

  20. Posted January 14, 2016 at 21:52 | Permalink | Reply

    Love the technicalities and its out on the full game on Google Play

  21. Posted January 14, 2016 at 22:17 | Permalink | Reply


    This is my newest picture ……
    In memory of our hero

    • Posted January 15, 2016 at 14:51 | Permalink | Reply

      i named him mike when i got the game back in 1.24

  22. Posted January 14, 2016 at 22:23 | Permalink | Reply

    will it be released to Apple.

    • Posted January 14, 2016 at 22:27 | Permalink | Reply

      Apple is always the last one to release.

      • timskillman
        Posted January 14, 2016 at 22:49 | Permalink | Reply

        In my experience Apple take 12 days to check approve and release an app. Google/Windows/Amazon takes a few hours!!

  23. Posted January 14, 2016 at 22:32 | Permalink | Reply

    Kaalus what would it take to add two arrows on the home screen, to scroll between the messages that appear. Between distractions and other things some messages are missed. Just a small idea that might be beneficial to some

  24. Posted January 15, 2016 at 00:12 | Permalink | Reply

    I want to report a bug. When I went to sleep in full version and during the zzzzz animation the frames were dropping insanely low and continued throughout until I woke up and the frames were very low. I have a Galaxy Note 3 running Android Lollipop

Leave a reply to jorgentwede Cancel reply