diff --git a/CHANGELOG.md b/CHANGELOG.md index 3289f61..5b82cb8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,10 @@ +# Changes in 0.4.0 + +* Threaded terrain collision generation +* Threaded world loading +* Smoke rendering performance improvements +* Small memory allocation and performance improvements for chunk generation + # Changes in 0.3.1 * Fixed multiple crashes caused by logging out and back in into any world diff --git a/README.md b/README.md index 6adde3f..810cd2d 100644 --- a/README.md +++ b/README.md @@ -2,11 +2,16 @@ Rendering, logic, and loading time optimizations for both client and server versions of Valheim. +## New in 0.4.0 + +* Threaded terrain collision generation decreases stutters when loading chunks +* Smoke rendering performance improvements + ## Stats * 5-10 ms faster GPU render times in bases (3 fps without the mod -> 15 fps with) * General game stability improvements - less stutters in bases -* Up to 20 second faster world loading times (excluding the first launch) +* 20+ seconds faster world loading times, especially for big worlds (excluding the first launch) * General game logic performance improvements (no concrete data on framerates) ## Development Setup diff --git a/ValheimPerformanceOptimizations/Patches/HeightmapColorAllocationPatch.cs b/ValheimPerformanceOptimizations/Patches/HeightmapColorAllocationPatch.cs index 0e2c1c9..d85712e 100644 --- a/ValheimPerformanceOptimizations/Patches/HeightmapColorAllocationPatch.cs +++ b/ValheimPerformanceOptimizations/Patches/HeightmapColorAllocationPatch.cs @@ -48,7 +48,6 @@ public static bool Prefix(Heightmap __instance) new Color[__instance.m_width * __instance.m_width] : _clearColors); __instance.ApplyModifiers(); - Profiler.EndSample(); return false; } diff --git a/ValheimPerformanceOptimizations/Patches/ThreadedHeightmapCollisionBakePatch.cs b/ValheimPerformanceOptimizations/Patches/ThreadedHeightmapCollisionBakePatch.cs index 6fcf490..1a87331 100644 --- a/ValheimPerformanceOptimizations/Patches/ThreadedHeightmapCollisionBakePatch.cs +++ b/ValheimPerformanceOptimizations/Patches/ThreadedHeightmapCollisionBakePatch.cs @@ -5,7 +5,7 @@ using HarmonyLib; using UnityEngine; -namespace ValheimPerformanceOptimizations +namespace ValheimPerformanceOptimizations.Patches { /// /// Setting a MeshCollider sharedmesh is expensive because Unity has to bake it into its physics. It can be called diff --git a/ValheimPerformanceOptimizations/Properties/AssemblyInfo.cs b/ValheimPerformanceOptimizations/Properties/AssemblyInfo.cs index d8f0fcd..296e31d 100644 --- a/ValheimPerformanceOptimizations/Properties/AssemblyInfo.cs +++ b/ValheimPerformanceOptimizations/Properties/AssemblyInfo.cs @@ -31,5 +31,5 @@ // You can specify all the values or you can default the Build and Revision Numbers // by using the '*' as shown below: // [assembly: AssemblyVersion("1.0.*")] -[assembly: AssemblyVersion("0.0.3.1")] -[assembly: AssemblyFileVersion("0.0.3.1")] \ No newline at end of file +[assembly: AssemblyVersion("0.0.4.0")] +[assembly: AssemblyFileVersion("0.0.4.0")] \ No newline at end of file diff --git a/ValheimPerformanceOptimizations/ValheimPerformanceOptimizations.cs b/ValheimPerformanceOptimizations/ValheimPerformanceOptimizations.cs index a7d53f9..36bf774 100644 --- a/ValheimPerformanceOptimizations/ValheimPerformanceOptimizations.cs +++ b/ValheimPerformanceOptimizations/ValheimPerformanceOptimizations.cs @@ -5,7 +5,7 @@ namespace ValheimPerformanceOptimizations { - [BepInPlugin(PluginId, "Valheim Performance Optimizations", "0.3.1")] + [BepInPlugin(PluginId, "Valheim Performance Optimizations", "0.4.0")] public class ValheimPerformanceOptimizations : BaseUnityPlugin { public const string PluginId = "dev.ontrigger.vpo";