# With bigger models and dense gyroid infill the slice process slows down or freezes

**URL:** <https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315>\
**Category:** FDM\
**Created:** [January 4, 2025, 11:24am UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315 "2025-01-04T11:24:51Z")\
**Posts on this page:** 18\
**Page:** 1

<div class="post-metadata">

**Author:** ![makermark](https://forum.grid.space/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@makermark](https://forum.grid.space/u/makermark)\
**Post date:** [January 4, 2025, 11:24am UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/1 "2025-01-04T11:24:51Z")

</div>

Hi guys

First of all, I would like to congratulate the developers for creating a very cool tool. I experimenting with different flexible models and I got good results from the gyroid infill with TPU material. The attached picture shows a child’s shoe that I designed and the sole was made in the above-mentioned way. The problem is that if I try to make a similar g code with a slightly larger model (I am experimenting with fully 3D printed shoes as well), the slicing is very slow and or freezes. I tried different browsers (including browsers specifically designed for gaming) and settings.

Thanks

 ![IMG_0355](https://forum.grid.space/uploads/default/original/2X/9/9a6bcf9e2c1bd69e413370edebda826dea8c7cd5.jpeg)

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [January 4, 2025, 6:41pm UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/2 "2025-01-04T18:41:41Z")

</div>

Regardless of the power of your PC, the browser sandbox usually limits memory usage to under 4GB. Gyroid infill is very memory and cpu intensive to compute. Can you try triangle, grid, or hex?

---

<div class="post-metadata">

**Author:** ![makermark](https://forum.grid.space/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@makermark](https://forum.grid.space/u/makermark)\
**Post date:** [January 5, 2025, 1:44pm UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/3 "2025-01-05T13:44:15Z")

</div>

Hi, thanks for the answer. The situation is that for the appropriate flexibility in all directions, the gyroid infiill is the right one for this type of models. Yes it is likely that the browser’s allocation is causing the problem in terms of memory because the machine has a lot of memory. I will try other browsers and browser settings as well. Thank you.

---

<div class="post-metadata">

**Author:** ![makermark](https://forum.grid.space/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@makermark](https://forum.grid.space/u/makermark)\
**Post date:** [January 5, 2025, 2:35pm UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/4 "2025-01-05T14:35:53Z")

</div>

Hi I tried out it in Opera Gx browser (A gaming focused browser) where the ram limit in this case is 64gb and while slicing the ram usage never exceeds 1.5 gb.

 ![image](https://forum.grid.space/uploads/default/original/2X/a/abf63520bd2abffe5d472759ad63667cddd443c6.jpeg)

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [January 5, 2025, 3:48pm UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/5 "2025-01-05T15:48:43Z")

</div>

interesting. I will try out this browser. did the slicing ever finish?

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [January 5, 2025, 4:13pm UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/6 "2025-01-05T16:13:14Z")

</div>

it turns out Opera GX is just a skinned Chromium so the same underlying engine as Chrome

---

<div class="post-metadata">

**Author:** ![makermark](https://forum.grid.space/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@makermark](https://forum.grid.space/u/makermark)\
**Post date:** [January 5, 2025, 5:01pm UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/7 "2025-01-05T17:01:32Z")

</div>

Hi. I waited 2-3 hours but it hasnt finished then.

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [January 5, 2025, 6:07pm UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/8 "2025-01-05T18:07:43Z")

</div>

if you want to send me the workspace, I can look for optimizations (files → export) email to [sa at grid dot space]

---

<div class="post-metadata">

**Author:** ![makermark](https://forum.grid.space/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@makermark](https://forum.grid.space/u/makermark)\
**Post date:** [January 7, 2025, 8:12am UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/9 "2025-01-07T08:12:28Z")

</div>

Hi. This thing can be recreated easily. I scaled up the default object five times and set the infill to gyroid and Fill Amount to 0.8. And same thing happening.

 ![image](https://forum.grid.space/uploads/default/original/2X/4/41f4cc1a3d55a4b7cc61728d8dfaa7e5d70553d7.jpeg)

---

<div class="post-metadata">

**Author:** ![makermark](https://forum.grid.space/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@makermark](https://forum.grid.space/u/makermark)\
**Post date:** [January 7, 2025, 8:59am UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/10 "2025-01-07T08:59:04Z")

</div>

I have to mention that for some reason I got better printed results with the Kiri Moto Slicer than with other slicers on flexible models that don’t have walls and are made only of gyroid infill. And it would be nice if it worked with larger volumes as well.

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [January 7, 2025, 2:43pm UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/11 "2025-01-07T14:43:08Z")

</div>

Given the way I wrote the KM infill subsystem and in particular the gyroid fill, higher densities are very computationally expensive. I don’t have any quick fixes for this. I don’t know how prusa or other slicer’s do this computation faster. But perhaps because they are written in C they can take advantage of SIMD and other cpu native speedups.

---

<div class="post-metadata">

**Author:** ![makermark](https://forum.grid.space/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@makermark](https://forum.grid.space/u/makermark)\
**Post date:** [January 7, 2025, 4:50pm UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/12 "2025-01-07T16:50:54Z")

</div>

Yes, I understand that since you are working in a higher-level development environment, you don’t have as much freedom for low-level things. Maybe memory isn’t the bottleneck? I checked and, the CPU usage is around 8 percent while the process is running. Maybe you could check why the process isn’t using more of these resources (CPU and RAM) when the environment (hardware and the browser) maybe would allow it.  
If you have any option to do so in the environment in which you are develop in.

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [January 7, 2025, 10:37pm UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/13 "2025-01-07T22:37:06Z")

</div>

chrome performance monitoring tools only shows the CPU usage associated with the main UI thread, not the workers. those are pegged at 100% but you can’t see that in the browser.

---

<div class="post-metadata">

**Author:** ![makermark](https://forum.grid.space/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@makermark](https://forum.grid.space/u/makermark)\
**Post date:** [January 8, 2025, 9:22am UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/14 "2025-01-08T09:22:36Z")

</div>

Hi. I just checked the processes in task manager while the slicing process was running and for some reason it doesn’t seem to be using that much resources (cpu and ram).

---

<div class="post-metadata">

**Author:** ![makermark](https://forum.grid.space/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@makermark](https://forum.grid.space/u/makermark)\
**Post date:** [January 8, 2025, 9:26am UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/15 "2025-01-08T09:26:14Z")

</div>

Made a screenshot of the browser processes while the slicing is running.

 ![image](https://forum.grid.space/uploads/default/original/2X/f/fd122aefcba516849eccfc7d84008b8161ae2fec.png)

---

<div class="post-metadata">

**Author:** ![makermark](https://forum.grid.space/letter_avatar_proxy/v4/letter/m/b782af/32.png) [@makermark](https://forum.grid.space/u/makermark)\
**Post date:** [January 8, 2025, 9:33am UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/16 "2025-01-08T09:33:08Z")

</div>

And at the same time, I apologize, I don’t want to be like an idiot manager, but it would be cool if the reason for this phenomenon could be found. 🙂

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [January 10, 2025, 4:18pm UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/17 "2025-01-10T16:18:55Z")

</div>

how many cpus do you have? the worker thread that is doing the infill will peg one cpu. it’s not multi-threaded. so if you have 10 cpus, that’ll show up as 10% cpu load.

having said that, I revisited the code for the first time in a few years and there is significant room for improvement. I can speed up the single threaded performance as a square of the infilled area. multi-threaded coding is a heavy lift given the current architecture.

---

<div class="post-metadata">

**Author:** ![stewart](https://forum.grid.space/user_avatar/forum.grid.space/stewart/32/21_2.png) [@stewart](https://forum.grid.space/u/stewart)\
**Post date:** [January 11, 2025, 4:03am UTC](https://forum.grid.space/t/with-bigger-models-and-dense-gyroid-infill-the-slice-process-slows-down-or-freezes/2315/18 "2025-01-11T04:03:18Z")

</div>

I’ve improved gyroid performance in the 4.1 beta branch. Hover the KM center menu and choose version 4.1 then shift + reload the page and test. The current beta version is 4.1.0.-D3

 ![Screenshot 2025-01-10 at 10.58.51 PM](https://forum.grid.space/uploads/default/original/2X/1/19bbcf285112883bc7e0a04fd2aaa3b76744baab.png)
