Speedup

Today I achieved more than 2x speedup of terrain mesh generation through some trickery with height values. The visible terrain was taking about 2.6 seconds to regenerate, now it’s a mere 1.25. This is really good news. This will very visibly reduce these:

  • the delay when you dig a block
  • slowdowns when water/magma is propagating
  • slowdowns due to light changes at dusk/dawn
  • slowdowns when moving quickly through the world

Even better, I have some more optimizations to do there, basically Survivalcraft is very eager to regenerate geometry around player as soon as possible. This is not always necessary, so there might be savings to be had there as well.

An unexpected side effect of that optimization is that bounding boxes of chunks are a bit smaller now, giving drawn geometry saving of about 5%. You can expect FPS to go up by about that much, although this is well below of what you can perceive without a FPS counter.

I also fixed the two bugs I mentioned in the earlier post. And of course immediately noticed one more: an ugly visible line on chunk boundaries on water/magma. This is due to my dirty tricks with texture coords to save memory. It’s not very noticeable, so not too bad.

All in all a good day!

Microsoft still says nothing about 1.9.

27 Comments

  1. Tanner
    Posted March 29, 2012 at 02:06 | Permalink | Reply

    Thanks kaalus I can’t wait for 1.9 also I have a great idea/maybe reward I will email you about it if you want to know so just check your email kaalus thank you.

  2. jriot10
    Posted March 29, 2012 at 02:13 | Permalink | Reply

    Stupid microsoft just wait till i get my hands on them…!!!!!

    • Tanner
      Posted March 29, 2012 at 02:19 | Permalink | Reply

      Lol I’m angry too.

  3. survivaler
    Posted March 29, 2012 at 06:16 | Permalink | Reply

    Calm down. I am sure the update will be worth waiting!

  4. Nikpol22
    Posted March 29, 2012 at 08:25 | Permalink | Reply

    Guys, I’m trying to make Minecraft texturepack. Who is trying too? If nobody let me know.

    • jriot10
      Posted March 29, 2012 at 15:19 | Permalink | Reply

      I am not trying to make one. I simply downloaded a texture pack online and i am moving the blocks around so they fit into survivalcraft’s grid.

  5. TheUselessmouth
    Posted March 29, 2012 at 08:56 | Permalink | Reply

    Wheeeeeheheeeeennn?????

  6. d1kan
    Posted March 29, 2012 at 14:48 | Permalink | Reply

    I have an idea (i hope i’m the one): what about electrified fences?
    useful for many traps
    Tell me if I talk nonsense ;)

    • jriot10
      Posted March 29, 2012 at 15:18 | Permalink | Reply

      That’s not nonsense i love that idea!!!

      • survivaler
        Posted March 29, 2012 at 15:50 | Permalink | Reply

        Me too!

    • Tanner
      Posted March 29, 2012 at 17:27 | Permalink | Reply

      Love your electric fence idea.

    • korbaksc
      Posted March 29, 2012 at 17:44 | Permalink | Reply

      It’s a good idea, I’d also like to see electric circuits.

  7. Quasidart
    Posted March 29, 2012 at 19:07 | Permalink | Reply

    I’ve also noticed horizontal “seams” between blocks of water in a vertical column (aka “a waterfall”) — stand below it & to the side, look up into it, and you can see the seams. (They aren’t visible when looking downwards at an angle, only upwards at an angle.) Is that a separate bug, or related to the chunking one above?

    • Posted March 29, 2012 at 21:38 | Permalink | Reply

      This is something else. Unfortunately fixing it would reduce the framerate (I would have to split rendering into more draw calls), so I left it as it is.

  8. survivaler
    Posted March 29, 2012 at 21:29 | Permalink | Reply

    Kaalus,when you say ‘dropbox’ do you mean the wp7 app called Boxfiles for Dropbox?

    • Posted March 29, 2012 at 21:43 | Permalink | Reply

      These are just apps that allow you to access your Dropbox account. Dropbox is an online file storage service just as Skydrive. You can access your files there in a variety of ways, including mobile apps, Dropbox website, by installing a small app on your PC which will automatically sync a folder on your HDD with the online store, etc.

      Survivalcraft also accesses your Dropbox account (once you allow it to) to download/upload worlds, or to download texture packs.

      Once the files are in your Dropbox you have effectively moved them out of your phone (where they are normally inaccessible due to Microsoft policies) and you can do anything you want with them. For example give them to someone else, edit them, or store them as backup and download back to your phone later.

  9. pippyo03
    Posted March 30, 2012 at 00:05 | Permalink | Reply

    You know what I think would be cool! If you could ride a horse!!!!!! You could go like 3x’s as fast as walking! I don’t know if its just me and its a stupid idea but I think it would be neat.

    • Tanner
      Posted March 30, 2012 at 00:06 | Permalink | Reply

      Love the idea

    • Nikpol22
      Posted March 30, 2012 at 05:51 | Permalink | Reply

      Good idea

      • beonebiker
        Posted March 30, 2012 at 06:32 | Permalink | Reply

        It would so cool !!

      • beonebiker
        Posted March 30, 2012 at 06:33 | Permalink | Reply

        be* ^^

  10. StoneSmoker420
    Posted March 30, 2012 at 01:37 | Permalink | Reply

    Great job kaalus but i kinda dont get how dropbox will work will u be able to do it throught the phone because i downloaded dropbox on my phone and im not sure if i have to do it throught their or the computer please explain a bit more thx

    • jriot10
      Posted March 30, 2012 at 03:14 | Permalink | Reply

      You do not have to download dropbox on your phone. What you have to do is get a dropbox account if you haven’t already which i believes downloads dropbox to your computer. When you are playing survivalcraft if you modify a world it will ask you if you want to upload the world. Clicking this will open dropbox where you will log in and then you can upload it.

      In other terms Dropbox is built into survivalcraft so you can delete the dropbox app you installed if you wish to do so.

      • StoneSmoker420
        Posted March 30, 2012 at 05:21 | Permalink | Reply

        Ok thx bro

      • survivaler
        Posted March 30, 2012 at 07:14 | Permalink | Reply

        Thx needed the extra help!

  11. Posted March 30, 2012 at 04:45 | Permalink | Reply

    Dropbox is a very neat service.

    First, you sign up on the dropbox website: http://db.tt/zwyUyoZa
    This gives you a free 2gb account for storing your files online. You can access anything you have stored on there just by visiting the Dropbox website.

    Also! You can download their software and keep a folder on your computer synced with the web storage (very neat! I use this frequently). That way, as soon as you add something to your Dropbox account from anywhere, it will automatically be available (within a few seconds, depending on file size) from either the synced folder on the computer, the mobile app or the website.You can also set up folder shares with other friends!

    There are also the mobile apps that you can download to gain access to your Dropbox content from your Windows Phone.

    Get your Dropbox account and check it out! May as well get comfortable with the service while you wait for the update.

    Get Dropbox: http://db.tt/zwyUyoZa

  12. korbaksc
    Posted April 2, 2012 at 20:23 | Permalink | Reply

    @Kaalus: Just to let you know that your speedup work bring to my first generation Samsung Omnia7 the possibility to handle high graphic setting pretty much nicely! :) You can be proud of your work one more time!
    Keep it up! ;)

Leave a Reply. No swearing please.

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s