May 3rd, 2024 - Foliage

May 3rd, 2024

Foliage

https://www.youtube.com/watch?v=yIKjR5jVv9Y&t=190

Suggested Wiki Refrence Code

Topics

    Transcription

    1. Snutt

      Let's start talking about foliage, our favorite subject.

      Everybody loves foliage.

      So right now there are colliders for the vehicles which allow them to sort of detect contact with with any foliage and sort of destroy it as you're driving.

      This results in pretty huge performances as like when you're driving through especially foliage dense areas but also in places where foliage is nearby but not necessarily in your path thanks to like wonky hitbox detection that we have.

      In 1.0, most foliage colliders are going to be completely removed from vehicles, actually, which means that going forward, you can't destroy smaller foliage by driving.

      It will simply just persist in the world, which honestly also looks a bit better than when it just vanishes into thin air when the first pixel of your vehicle hits it.

      So we thought at first this was going to be a strange change, but actually when testing it out, we felt like this kind of actually makes sense.

      Most noteworthy for dedicated servers, foliage has been like a huge culprit of RAM, where sometimes it reached over like 12 gigs on like just a fresh save file.

      So not having collision on foliage will reduce it down to like somewhere around like five and a half gigs, which is a huge improvement.

      Relaxing foliage collision will also help greatly with level streaming and reduce overall stuttering because you're not trying to demolish dozens of objects within a second many times in a row all the time constantly.

      So that's great.

      But vehicles will still be able to destroy almost all foliage that requires at least the chainsaw to get rid of.

      So it's not gone totally, but it's gone for the majority of the smaller foliage types.

      Where the fine line goes between exactly what foliage is destructible or not is something that we're still figuring out and fine-tuning.