From 6d8aa8505115c03ab2a50489f23fe36dea8cd564 Mon Sep 17 00:00:00 2001 From: Brecht Van Lommel Date: Mon, 21 May 2018 11:08:03 +0200 Subject: Fix too much memory usage for Cycles attribute map. Thanks to Thomas Krebs for identifying the problem and solution. --- intern/cycles/render/mesh.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'intern/cycles') diff --git a/intern/cycles/render/mesh.cpp b/intern/cycles/render/mesh.cpp index 7cfbb7b7c7d..7a9d604244d 100644 --- a/intern/cycles/render/mesh.cpp +++ b/intern/cycles/render/mesh.cpp @@ -1307,7 +1307,7 @@ void MeshManager::update_svm_attributes(Device *, DeviceScene *dscene, Scene *sc return; /* create attribute map */ - uint4 *attr_map = dscene->attributes_map.alloc(attr_map_size*scene->meshes.size()); + uint4 *attr_map = dscene->attributes_map.alloc(attr_map_size); memset(attr_map, 0, dscene->attributes_map.size()*sizeof(uint)); for(size_t i = 0; i < scene->meshes.size(); i++) { -- cgit v1.2.3