FAForever Forums
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Groups
    • Login

    Is it possible to cache faf versions?

    Scheduled Pinned Locked Moved General Discussion
    13 Posts 8 Posters 681 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • S Offline
      snoog
      last edited by

      Pretty sure when you join a dev, it's only downloading the most recent version. Caching wouldn't help, because they're constantly updating it right now.

      1 Reply Last reply Reply Quote 0
      • SpikeyNoobS Offline
        SpikeyNoob Global Moderator
        last edited by

        ah ok thats fair, is there a way to update files instead of downloading all of it

        1 Reply Last reply Reply Quote 0
        • S Offline
          Sheikah
          last edited by

          It only updates the files that have changed already

          1 Reply Last reply Reply Quote 0
          • SpikeyNoobS Offline
            SpikeyNoob Global Moderator
            last edited by

            oh ok, interesting it is always so slow. Maybe i should do some more research lol

            1 Reply Last reply Reply Quote 0
            • Brutus5000B Offline
              Brutus5000 FAF Server Admin
              last edited by Brutus5000

              All files are cached, but fafdevelop changes way to often to utilize the cache. We tried generating better patches (and even had a working implementation) but it has other drawbacks in (needs more disk writes and CPU), so we dropped it.

              "Nerds have a really complicated relationship with change: Change is awesome when WE'RE the ones doing it. As soon as change is coming from outside of us it becomes untrustworthy and it threatens what we think of is the familiar."
              – Benno Rice

              1 Reply Last reply Reply Quote 0
              • AskaholicA Offline
                Askaholic
                last edited by

                And since the files are packed up in zip archives, if a single line in a single file gets changed you have to redownload the entire zip archive again...

                S 1 Reply Last reply Reply Quote 0
                • S Offline
                  Sheeo @Askaholic
                  last edited by

                  @askaholic said in Is it possible to cache faf versions?:

                  And since the files are packed up in zip archives, if a single line in a single file gets changed you have to redownload the entire zip archive again...

                  There's actually no need for them to be in .zip files as the game can mount folders.

                  1 Reply Last reply Reply Quote 0
                  • JipJ Offline
                    Jip
                    last edited by

                    I suspect the game (original game) does it to prevent fetching scattered files on disk. E.g., small random reads / writes.

                    A work of art is never finished, merely abandoned

                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      Sheeo @Jip
                      last edited by Sheeo

                      @jip yes with most modern machines equipped with NVMe SSDs that should be less of a concern though 🙂

                      1 Reply Last reply Reply Quote 0
                      • Brutus5000B Offline
                        Brutus5000 FAF Server Admin
                        last edited by

                        Tell that to our players with their 10 year old notebooks.

                        "Nerds have a really complicated relationship with change: Change is awesome when WE'RE the ones doing it. As soon as change is coming from outside of us it becomes untrustworthy and it threatens what we think of is the familiar."
                        – Benno Rice

                        1 Reply Last reply Reply Quote 0
                        • AskaholicA Offline
                          Askaholic
                          last edited by

                          It’s more of a web issue. Like we dont want every new client making 3000 web requests to download all the files. Although there’s could probably be some combination of the two like get a Zip the first time and then switch to getting individual files, but that adds a lot of complexity and then of course you gotta hash all 3000 files on disk separately to check for changes.

                          1 Reply Last reply Reply Quote 0
                          • ThomasHiattT Offline
                            ThomasHiatt
                            last edited by

                            There is an option you can enable in the clients to cache versions of the game so they do not need to be redownloaded.

                            1 Reply Last reply Reply Quote 0
                            • First post
                              Last post