The Elder Scrolls V: Skyrim

The Elder Scrolls V: Skyrim

BSA Optimization Project - Skyrim's BSAs
 Тема закреплена. Скорее всего, здесь есть важная информация.
ferferga  [Разработчик] 2 июн. 2016 г. в 7:43
FAQ & Tips
Go to the Tips section here

Click here if you want to know more steps to get a better performance and stability in your game.

Check this section of this thread if you are a modder and you are looking to know what I've done to the BSAs or you simply want to know if one BSA is compressed or not.

Q: What does it mean "uncompressed"?

The BSAs from Skyrim are like ZIPs or RARs files, they are a propietary file type for Bethesda Games (BSA = Bethesda Softworks Archive). They have an optimized algorithm for games. Most of the Skyrim's BSAs are compressed. That means that the file is smaller, but when you need to access those files, you will need some extra CPU processing to un-zip them on-the-fly.

Like ZIP and RAR format allow, you can archive files into one file without compressing it. That means that the file is like a folder instead of a compressed one.
That's what I've done to the BSAs in BSAOP. The originals were compressed, so they take up some CPU when you are playing, in order to get the files. That causes freezing or stuttering. With BSAOP installed, the BSAs are uncompressed, so they don't eat extra CPU resources to load the files.

Q: Which is the difference from this to unzip the files to loose format?

Unzip means to get all the files from the BSAs into a folder structure. That means that they are in loose format. That is a very dangerous situation. If you install a mod, it can replace vanilla files, so maybe it can mess your games or broke it. Keeping the BSAs ensure you that your files are safe into them. With BSAOP you have also the advantage to have the same performance of the loose files with keeping the BSA. Amazing, right?.

Q: I have some messed textures/meshes

I need some details about your problems. Please, follow this:

· Check the whole description again and see if you have done something wrong with your installation. Solved? Probably a problem with your installation.
· Check with the vanilla BSAs (uninstall all the optional files, reinstall the main "Skyrim's BSAs", download the vanilla DLCs and try with the vanilla BSAs). Solved? Probably, some textures from the High-Res version or the Optimized Vanilla Textures version are working bad with your system/settings
· Are you sure it isn't caused by a mod? Test with a new save game without any mods.
· Are you sure it isn't happening in the vanilla game, without BSAOP?

Still problems? Open a new issue in the Bug Tracker, attach an screenshot, fill with all the details you can (your mods, your rig...). If you can, give me also the cell name, so I can teleport to it and check what's going on.

Q: I don't notice a huge performance.

That depends on your system and, especially, mod setup. If you have a script-heavy setup, 4k textures with a poor graphics card... BSAOP can't do magic. Anyway, take in mind that some mods uses BSAs. They might be compressed by the publisher of the mod, so it slow down the performance of your game. Check the tips section here if you want to check if a BSA is compressed or not. If it is compressed, you can tell the author of the mod, and send him a link to the article, so he can take a look and optimize his BSA.

Apply this rule:


More BSAs and more .ESP files to load means that the game will need to unpack and process a high amount of files. No matter if they are compressed or not. That's why the experience can change from system to system and game to game.


Check also if you have installed correctly BSAOP. I know, the installation process is a bit confusing (I'm working on a custom installer for the mod), but, please, take another look at the installation guide and check if you have done something wrong. An incorrect installation of the mod won't damage your game or savegame, but, perhaps, it can slow down your game or don't make the game as fast as it should.

Q: How to switch between flavours?

Since the version 2.0, BSAOP has different flavours. If you want to switch between flavours, first, uninstall the old flavour, and, after that, install the new one. The instructions are inside the description of each flavour.

Q: Which textures have been optimized in the Performance versions of BSAOP?

All the Vanilla and DLC textures that are known to need optimization in the game are already included in the Performance versions of BSAOP. You must thanks tony971 and The S.T.E.P team for these files. I could make ones myself, but their files would be even better than mine ;)
Отредактировано ferferga; 16 апр. 2017 г. в 5:04
< >
Сообщения 13 из 3
ferferga  [Разработчик] 2 июн. 2016 г. в 8:41 
Tips!

1. Always keep your game drive defragmented.


Imagine your Hard Disk as the largest library in the world. Each book there can only have 200 pages. Huge novels need more than one book then!. Now, you open that library and then, the people start reading the books and they put them in the incorrect place. Now you have one novel divided across the library!

The same happens with a disk. Each disk is divided in clusters. They are small cells with small capacity. Large files are splitted across many clusters. If one program read the files or write on it, it can write the data on a further cluster. That increase the disk accesing time.
Defrag your drive can help you. It organises your disk. Files splitted in many clusters are placed near each other, so the system can acces it faster! In the library example: The workers start looking for the separated books and place them next to the other!.

How to?

Open Start Menu and search for "defrag". A program will start. Just click on your drives and choose "Optimize".

Read this[www.tomshardware.co.uk] for further help.

Take in mind that this process isn't suitable for SDD drives. Just do it on HDD drives.

2. Have all the BSAs uncompressed

Check this if you want to know how to uncompress your BSAs.
Отредактировано ferferga; 2 июн. 2016 г. в 9:18
ferferga  [Разработчик] 2 июн. 2016 г. в 9:16 
Are you a modder? Are you a normal user that want to know how to optimize BSAs? Check this guide! It's super-easy!

We will treat the textures files as they were not packed into a BSA, that means, as loose files.


· STEP ONE: Optimize your textures

- Download Optimizer textures here[www.nexusmods.com]
- Download this modified INI file[www.nexusmods.com] and replace it with the included into Optimizer Textures.
- Run the program as admin. Point the program to your mod's directory.

I used the same method that thorne67[www.nexusmods.com] described. I will quote what he said:

So here's the JUST TO START options: Check If no mask in image compress to DXT1C Check if mask in image is 1bit compress to DXT5 Check if mask in image is translucency compress to DXT5 Check delete unnecessary files Check Mipmaps....FORCE REBURN THIS is important. SOME authors forgot em. This will FIX it. ONLY do this for the VERY first run. Check Resize Patterns...16x16 Any SMALLER and your game looks like Lego building blocks. Check Resize DOWN...IF > 2048 This is your FIRST run. If you downloaded 8K textures and you're running an OLD machine...hey...your choice. It'll look GREAT... but take FOREVER to do this process... Now...at the very bottom in light blue or whatever colour scheme you're using it has a "options for mod makers" Click on it and the very bottom box becomes available. Check that one now and run the program. If you downloaded a mod with a LOT of textures you could be waiting for quite a while. 6. Second Run. CHANGE the MIPMAPS option to MAKE IF NO MIPMAPS Run the program. It'll continue doing the same thing and fixing things.. even if you downloaded 2k textures it's fixing and adding. 7. Third Run. If you want to just be safe change the MIPMAPS again to FORCE REBURN but I've ONLY encountered one bad file out of hundreds. Other than that MIPMAPS should be at MAKE if... RESIZE DOWN...go incrementally 2048 then 1024 and finally 512. The program WILL go lower dividing by half after the 512 option so I'd suggest running the 512 option at least twice. You can see what it's doing as it's doing it so generally you can tell if there's any files that are still over what you want.

STEP TWO: Advanced Optimization (Optional)

If you want to improve furthermore your files, check this guide[wiki.step-project.com]. You can also try to resize monochrome textures and flat normal maps to 4x4 (if they exist in your mod). Optimizer Textures can do that.

Thanks to tony971[www.nexusmods.com] for the tip!

Once you have everything ready to be packed into a BSA...

STEP THREE: Packing without compression, using Archive.exe from Creation Kit

- Go to your Skyrim main directory (normally, C:/Program Files/Steam/steamapps/common/Skyrim or C:/Program Files (x86)/Steam/steamapps/common/Skyrim if you use a 64-bit Windows).
- Locate Archive.exe. Open it. Go to "File" --> "New". Make sure you tick this items:

Photo:
http://images.akamai.steamusercontent.com/ugc/260460543555200984/C561DCFBCB8ED42D52031B74F10764520846CBB7/

THIS STEP IS REALLY IMPORTANT. IF YOU DON'T DO SO, ARCHIVE.EXE WILL PACK THE FILES POINTING TO ANOTHER DIRECTORY DIFFERENT FROM THE DATA FOLDER AND THE GAME WILL LOOK FOR THESE DIRECTORIES WITHOUT SUCCESS:

- In "Root Dir", locate your mod working directory:

Imagine that your mod working directory is under C:/Mods/WIP/Test. Under that folder called "Test", there are the files that you want to pack ("textures" folder, "meshes" folder...)

Then, you need to click into the "..." to open a browser and locate the folder.

Photo:
http://images.akamai.steamusercontent.com/ugc/260460543555201221/BF5961D1DF42F8B038FCA08183C3C743FB1397A5/


- Drag and drop the folders and the files that you want to pack into the Archive.exe. They will be treated as a part of the "Data" directory when packed into the BSA.

Photo:
http://images.akamai.steamusercontent.com/ugc/260460543555201448/F5BD94DDE65224F30D93E6D7ED232D379C35FE99/

(Open the image in a New Tab if you can't see it properly)


- When the Archive.exe has processed the data, you will need to go to "File" --> "Save". Give it the name that you want. It will be saved with a .BSL file and a .BSA.

TAKE A LOOK TO THE SIZE OF THE GENERATED BSA. IF IT EXCEEDS 2 GB, YOU WILL NEED TO REPACK THEM AGAIN, IN PARTS. CLICK ON "FILE" --> "NEW" AND START AGAIN FROM THE STEP THREE. REPEAT ALL THE STEPS, BUT DON'T ADD ALL THE FILES FROM YOUR MOD. DIVIDE YOUR FILES AND PACK THEM IN DIFFERENT BSAS. THE GAME CAN'T LOAD BSAS LARGER THAN 2 GB.

You can ignore the .bsl file. It isn't important unless you want to pack your mod and use it into Steam Workshop. Place your BSA into the Data directory of Skyrim and test if it works as you expect (it should work exactly the same as the loose files). Then, you can zip it and upload it into Nexus or another site for distribution.

STEP FOUR: LOAD YOUR BSA FILES INTO THE GAME

You have many ways to load the files into the game:

· Using plugins
· Using tweaks in Skyrim.ini

USING PLUGINS:

- Open CreationKit (press ESC if a warning appears, to ignore them all). Click on "File" --> "Data". Tick Skyrim.esm (double click on it). Choose "Set as active file".
- Ignore all the popups by pressing "ESC".
- When CK has finished loading, click on "File" --> "Save". Name your .esp file with the same name you name your BSA.

If you have created more than one BSA, just copy the file you generated with CK and give the same name of the rest of BSAs.

- Move your plugin to the "Data" directory. Activate it and check if your BSA loads.

USING TWEAKS IN SKYRIM.INI:

- Go to Documents/My Games/Skyrim. Open Skyrim.ini

- Locate the [Archive] tag. It should look like this:

[Archive] sResourceArchiveList=Skyrim - Misc.bsa, Skyrim - Shaders.bsa, Skyrim - Textures.bsa, Skyrim - Interface.bsa, Skyrim - Animations.bsa, Skyrim - Meshes.bsa, Skyrim - Sounds.bsa sResourceArchiveList2=Skyrim - Voices.bsa, Skyrim - VoicesExtra.bsa Note: The files that are added into sResourceArchiveList2 replaces those files that are added into sResourceArchiveList.

Add your files to one of the sResourceArchiveList, save the .INI file and you are good to go!


Hope that this was useful for many people!
Отредактировано ferferga; 2 июн. 2016 г. в 12:20
ferferga  [Разработчик] 3 июн. 2016 г. в 6:46 
If you are like me, that doesn't have a really powerful computer, or you have a good machine, but want to get the best performance, follow this guide! I spent months trying and trying with the best results.

- Kindly, use ENBoost[wiki.step-project.com] and SKSE Memory Patch.

This page will help you to configure ENBoost[wiki.step-project.com]. Also, check this.

For SKSE, go to C:\Program Files (x86)\Steam\steamapps\common\skyrim\Data\SKSE (C:\Program Files\Steam\steamapps\common\skyrim\Data\SKSE if you use a x32 bits installation of Windows). Create a file called "skse.ini". Add the following lines:

QUOTE
[General]
ClearInvalidRegistrations=1
[Memory]
DefaultHeapInitialAllocMB=768
ScrapHeapSizeMB=512
Of course, you need SKSE for that to be applied to the game.

- Use BSAOP with the Optimized Vanilla Textures

- Unpark your CPU. Read this guide[www.coderbag.com]. Also, use the High Performance mode in Windows (Control Panel - Energy - High Performance)

- Use Windows 10. Windows 10 has a few memory tweaks and graphic tweaks that can improve your game performance (not that much, but really a bit).

- Use SafetyLoad[www.nexusmods.com] and CrashFixes[www.nexusmods.com].

- MUST: Use spINI[www.nexusmods.com]. It will optimize your INI files in a way that you won't recognise your game. You can choose also the spINI graphical presets. They work so much better than vanilla. This method worked really well for me.


And that's mostly what I've done with my game (suming up, I've done many things under the hood). I applied much more tweaks to my game, but I will detail them later. I will take a look at my game settings and improve this guide time to time. It's a Work In Progress! I will share my new methods and explain furthermore the current ones as soon as I have more time.

Have a nice day!
Отредактировано ferferga; 3 июн. 2016 г. в 6:49
< >
Сообщения 13 из 3
Показывать на странице: 1530 50