mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-06-22 06:45:36 +00:00
refactor: remove vec3 tls
This commit is contained in:
@@ -1211,7 +1211,6 @@ int main() {
|
||||
Tesselator::CreateNewThreadStorage(1024 * 1024);
|
||||
// Initialise TLS for AABB and Vec3 pools, for this main thread
|
||||
AABB::CreateNewThreadStorage();
|
||||
Vec3::CreateNewThreadStorage();
|
||||
OldChunkStorage::CreateNewThreadStorage();
|
||||
Level::enableLightingCache();
|
||||
Tile::CreateNewThreadStorage();
|
||||
@@ -1547,7 +1546,6 @@ int main() {
|
||||
// Fix for #7318 - Title crashes after short soak in the leaderboards
|
||||
// menu A memory leak was caused because the icon renderer kept creating
|
||||
// new Vec3's because the pool wasn't reset
|
||||
Vec3::resetPool();
|
||||
}
|
||||
|
||||
// Free resources, unregister custom classes, and exit.
|
||||
|
||||
Reference in New Issue
Block a user