Fixed unacceptable fps drops across cal biomes

This commit is contained in:
Mishiro Usui committed 2023-10-02 22:12:44 +01:00
1 parent 1c92f7954a
commit 43d91cfe86
1 file changed
+3
+3
View File
@@ -1938,6 +1938,9 @@ namespace CalamityMod
/// </summary>
internal static void DrawUniversalMergeFrames(int x, int y, byte[,] adjacencyData, string blendSheetPath, int frameOffsetX = 0, int frameOffsetY = 0)
{
// 29SEP2023: MishiroUsui: The below code resulted in 30 fps drops in sulph sea, and general performance issues across the board in cal biomes
// DO NOT RE-ENABLE UNTIL THE ISSUE IS RESOLVED AND VERIFIED.
return;
Texture2D blendLayer = ModContent.Request<Texture2D>(blendSheetPath).Value;
Vector2 zero = Main.drawToScreen ? Vector2.Zero : new Vector2(Main.offScreenRange);
Vector2 drawOffset = new Vector2(x * 16 - Main.screenPosition.X, y * 16 - Main.screenPosition.Y) + zero;