From 2cf8bcf2b98c21c476a0bcb78637c7ab5ed26ce9 Mon Sep 17 00:00:00 2001
From: Rye Mutt <rye@alchemyviewer.org>
Date: Sat, 6 Mar 2021 15:26:09 -0500
Subject: [PATCH] Larger buffer for faster mesh cache write

---
 indra/newview/llmeshrepository.cpp | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/indra/newview/llmeshrepository.cpp b/indra/newview/llmeshrepository.cpp
index bcda27cb0e4..b7118010ace 100644
--- a/indra/newview/llmeshrepository.cpp
+++ b/indra/newview/llmeshrepository.cpp
@@ -3292,7 +3292,7 @@ void LLMeshHeaderHandler::processData(LLCore::BufferArray * /* body */, S32 /* b
 				file.write(data, data_size);
 
 				// zero out the rest of the file 
-				U8 block[MESH_HEADER_SIZE] = {};
+				U8 block[65536] = {};
 
 				while (bytes - file.tell() > sizeof(block))
 				{
-- 
GitLab