Framerate and Performance: Difference between revisions

From Vintage Story Wiki
no edit summary
No edit summary
No edit summary
Line 32: Line 32:


<!--T:35-->
<!--T:35-->
1. If, in Single Player, you run into large lag spikes after a few minutes of play, and you have 8 GB or less RAM, you could be bottlenecked by lack of system memory (in extreme cases it can also crash with OutOfMemory exceptions, including graphics OutOfMemory issues). In the game settings, try reducing view distance to 256 blocks, 192 blocks or even less and then you should be able to run the game on most systems with low RAM: it is also wise to close your web browser and all other running programs. If it's your own computer it is well worth considering purchasing more RAM, upgrading to 16GB ideally. Buying more RAM is quite cost effective in comparison to a new graphics card or CPU.  
1. If, in Single Player, you run into large lag spikes after some time playing you could be bottlenecked by lack of system memory (in extreme cases it can also crash with OutOfMemory exceptions, including graphics OutOfMemory issues). Vintage Story needs about 4GB-6GB of free RAM to run smoothly, plus approximately 2GB of headroom for your graphics drivers.  While the game is playable if you have 8 GB or less RAM, that may not be enough for totally smooth performance.  To help smoothness with low amounts of memory, in the game settings, try reducing view distance to 256 blocks, 192 blocks or even less and then you should be able to run the game on most systems with low RAM: it is also wise to close your web browser and all other running programs. If it's your own computer it is well worth considering purchasing more RAM, upgrading to 16GB or even 32GB or more. Buying more RAM can be a cost-effective upgrade in comparison to a new graphics card or CPU.  


<!--T:23-->
<!--T:23-->
Line 60: Line 60:
<!--T:15-->
<!--T:15-->
''(Note that VintageStory does use multithreading for efficient performance. That is why the game runs best on a CPU with 4 cores or more. But the main rendering thread, which is one of the limits on FPS, runs on a single core.)''
''(Note that VintageStory does use multithreading for efficient performance. That is why the game runs best on a CPU with 4 cores or more. But the main rendering thread, which is one of the limits on FPS, runs on a single core.)''
<!--T:20-->
6. If you experience lag spikes with no obvious cause in the game (you have a good GPU, reasonable graphics settings not too high, and plenty of RAM free) the cause could be outside Vintage Story. For example, Discord seems to cause occasional lag spikes on some systems.
''Tip: You can troubleshoot the possible causes of lag spikes yourself by running the command <code>.debug logticks 80</code> and then afterwards examining the `client-main.txt` log file in VintagestoryData/Logs.''


<!--T:25-->
<!--T:25-->
6. If your settings seem well adjusted most of the time but you still experience occasional short, stuttering lag spikes especially when moving larger distances across the world, try '''increasing''' the Chunk upload rate limiter setting. First try increasing it to its maximum setting, fly around the world some distance, and if that has fixed the lag spike problem, in slow steps bring the slider back down to a level which still does not produce lag spikes. (The game cannot automatically adjust this setting, the correct value depends on the unique combination of your graphics hardware's capabilities, overall system speed, and other adjustable graphics settings such as view distance.)
7. If your settings seem well adjusted most of the time but you still experience occasional short, stuttering lag spikes especially when moving larger distances across the world, try '''increasing''' the Chunk upload rate limiter setting. First try increasing it to its maximum setting, fly around the world some distance, and if that has fixed the lag spike problem, in slow steps bring the slider back down to a level which still does not produce lag spikes. (The game cannot automatically adjust this setting, the correct value depends on the unique combination of your graphics hardware's capabilities, overall system speed, and other adjustable graphics settings such as view distance.)


<!--T:26-->
<!--T:26-->
7. In Single player or if using your own server (see #1 above), you can tweak server performance by adjusting the "servermagicnumbers.json". The magic numbers default values are aimed at a typical Vintage Story multiplayer server with let's say 3 or 4 players, playing over the internet, so some of them can be increased if it's only 1 player on your own machine.
8. In Single player or if using your own server (see #1 above), you can tweak server performance by adjusting the "servermagicnumbers.json". The magic numbers default values are aimed at a typical Vintage Story multiplayer server with let's say 3 or 4 players, playing over the internet, so some of them can be increased if it's only 1 player on your own machine.


<!--T:27-->
<!--T:27-->
8. There's a known issue on '''Radeon''' graphics cards - including high end Radeon cards - about GPU availability, more like memory lock contention. The issue is normally only seen on max graphics settings (with shadows enabled) and is most obvious when moving across the map so that a lot of new map loads, there can be '''noticeable frame rate drops and stutter'''. Game version 1.15.7 and above has a change that slightly improves this, we hope to do even more to work around it in future versions, but it is a hardware/GPU issue. For anyone bothered by the issue, a solution is to ease the pressure on the GPU by turning down some of the top end settings (SSAO and Shadows or reduce the MaxFPS) so that the GPU has some idle time each frame.
9. There's a known issue on '''Radeon''' graphics cards - including high end Radeon cards - about GPU availability, more like memory lock contention. The issue is normally only seen on max graphics settings (with shadows enabled) and is most obvious when moving across the map so that a lot of new map loads, there can be '''noticeable frame rate drops and stutter'''. Game version 1.15.7 and above has a change that slightly improves this, we hope to do even more to work around it in future versions, but it is a hardware/GPU issue. For anyone bothered by the issue, a solution is to ease the pressure on the GPU by turning down some of the top end settings (SSAO and Shadows or reduce the MaxFPS) so that the GPU has some idle time each frame.


<!--T:28-->
<!--T:28-->
9. The Occlusion Culling graphics setting is recommended on any modern multi-core CPU (4 cores or more) - it uses one additional CPU thread but leads to less work for the GPU. This can drastically increase performance while playing with high render distances.
10. The Occlusion Culling graphics setting is recommended on any modern multi-core CPU (4 cores or more) - it uses one additional CPU thread but leads to less work for the GPU. This can drastically increase performance while playing with high render distances.


<!--T:29-->
<!--T:29-->
10. For very low end hardware, it can help to play on worlds that are only 192 or 128 blocks tall.  
11. For very low end hardware, it can help to play on worlds that are only 192 or 128 blocks tall.  


<!--T:30-->
<!--T:30-->
11. Some game scenes are more complex and will lead to FPS drops for most players. Examples are deep forests with many leaves, towns with many chiselled blocks, and the Resonance Archives.  
12. Some game scenes are more complex and will lead to FPS drops for most players, this is only to be expected. Examples are deep forests with many leaves, towns with many chiselled blocks, and the Resonance Archives.


<!--T:31-->
<!--T:31-->
12. If you are having issues with stuttering, and have RAM to spare, such as 16gb+ of RAM in your system, you can try disabling the Optimize Ram option. You cannot do this ingame, so you’ll need to navigate to <code>%appdata%</code> in your file explorer, and locate your <code>VintageStory</code> folder (or right-click on your Vintage Story shortcut icon and select "Open file location"). In there you’ll find <code>clientsettings.json</code>. Find the line that includes <code>OptimizeRam</code> and check to see what value it is set to. It should be set by default to either <code>1</code> or <code>2</code>. If you set this to <code>0</code> and save the file, it will disable the setting the next time you start your game. When in game you can ensure that it is disabled by looking at the Optimize Ram graphics setting and it will have a blank entry. This may improve your issues with stuttering or microstuttering.  
13. If you are having issues with stuttering, and have RAM to spare, such as 16gb+ of RAM in your system, you can try disabling the Optimize Ram option. You cannot do this ingame, so you’ll need to navigate to <code>%appdata%</code> in your file explorer, and locate your <code>VintageStory</code> folder (or right-click on your Vintage Story shortcut icon and select "Open file location"). In there you’ll find <code>clientsettings.json</code>. Find the line that includes <code>OptimizeRam</code> and check to see what value it is set to. It should be set by default to either <code>1</code> or <code>2</code>. If you set this to <code>0</code> and save the file, it will disable the setting the next time you start your game. When in game you can ensure that it is disabled by looking at the Optimize Ram graphics setting and it will have a blank entry. This may improve your issues with stuttering or microstuttering.  


<!--T:32-->
<!--T:32-->
Confirmedusers, editor
348

edits