<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Unfolder V2, stress test on FF and Chrome]]></title><description><![CDATA[<p dir="auto">Hello,  I tested the unfolder V2 on Ubuntu with Firefox and Chrome, on my laptop (APU with 4 cpu and 8 Gb RAM) and my desktop (2 CPU with 8 Gb + GPU with 1 GB).</p>
<p dir="auto">1000 faces model :</p>
<ul>
<li>17 sec. on the laptop with Chrome</li>
<li>31 sec. on the laptop with Firefox</li>
<li>1'37 sec on the desktop with Firefox</li>
</ul>
<p dir="auto">2000 faces model :</p>
<ul>
<li>crash on the laptop with Chrome</li>
<li>1'00 sec on the laptop with Firefox</li>
</ul>
<p dir="auto">Apparently, there's a memory leak somewhere, but I don't know how I can release memory or if it is needed.</p>
]]></description><link>https://openjscad.nodebb.com/topic/340/unfolder-v2-stress-test-on-ff-and-chrome</link><generator>RSS for Node</generator><lastBuildDate>Mon, 20 Apr 2026 21:19:14 GMT</lastBuildDate><atom:link href="https://openjscad.nodebb.com/topic/340.rss" rel="self" type="application/rss+xml"/><pubDate>Wed, 02 Feb 2022 13:49:43 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Unfolder V2, stress test on FF and Chrome on Tue, 15 Feb 2022 21:33:25 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/5">@gilboonet</a> that is excellent, it may be possible later on to integrate that one with jscad or at least take your experience for ideas how to improve 2D use-cases in jscad.</p>
]]></description><link>https://openjscad.nodebb.com/post/1114</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/1114</guid><dc:creator><![CDATA[hrgdavor]]></dc:creator><pubDate>Tue, 15 Feb 2022 21:33:25 GMT</pubDate></item><item><title><![CDATA[Reply to Unfolder V2, stress test on FF and Chrome on Sun, 13 Feb 2022 17:53:02 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/152">@hrgdavor</a> As there was nothing more I could do to improve this V2 version of the Unfolder, I started a simple JS version and it works really fine : unfolding is immediate even for 3000 faces model, and output to pdf works.<br />
<img src="/assets/uploads/files/1644774749935-capture-d-%C3%A9cran-de-2022-02-13-18-27-01.png" alt="Capture d’écran de 2022-02-13 18-27-01.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://openjscad.nodebb.com/post/1113</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/1113</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Sun, 13 Feb 2022 17:53:02 GMT</pubDate></item><item><title><![CDATA[Reply to Unfolder V2, stress test on FF and Chrome on Wed, 09 Feb 2022 22:55:03 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/5">@gilboonet</a> that is great news. the performance gain will be available in new jscad prototype too....<br />
I could add 2d output to threejscad2 ...</p>
]]></description><link>https://openjscad.nodebb.com/post/1112</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/1112</guid><dc:creator><![CDATA[hrgdavor]]></dc:creator><pubDate>Wed, 09 Feb 2022 22:55:03 GMT</pubDate></item><item><title><![CDATA[Reply to Unfolder V2, stress test on FF and Chrome on Sat, 05 Feb 2022 09:46:23 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/152">@hrgdavor</a> I made a custom version including the 3000 faces model to run it with your threejsjscad2 and it works on both Firefox and Chrome, very quickly, a few seconds on Firefox and faster on Chrome, which is very nice. But as there's no 2d output it can not be used. Anyway it could help find what makes jscad 2 slow.<br />
<img src="/assets/uploads/files/1644054341921-capture-d-%C3%A9cran-de-2022-02-05-10-23-48.png" alt="Capture d’écran de 2022-02-05 10-23-48.png" class=" img-responsive img-markdown" /><br />
<img src="/assets/uploads/files/1644054360481-capture-d-%C3%A9cran-de-2022-02-05-10-33-25.png" alt="Capture d’écran de 2022-02-05 10-33-25.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://openjscad.nodebb.com/post/1111</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/1111</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Sat, 05 Feb 2022 09:46:23 GMT</pubDate></item><item><title><![CDATA[Reply to Unfolder V2, stress test on FF and Chrome on Fri, 04 Feb 2022 23:09:31 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/152">@hrgdavor</a> I will try to run it on you link this week-end. For the moment  my most detailed model has 2000 faces and I hope to start build more detailed, but it's already more than most papercraft models.</p>
]]></description><link>https://openjscad.nodebb.com/post/1110</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/1110</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Fri, 04 Feb 2022 23:09:31 GMT</pubDate></item><item><title><![CDATA[Reply to Unfolder V2, stress test on FF and Chrome on Fri, 04 Feb 2022 22:43:12 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/5">@gilboonet</a> those can be tricky to debug. One thing I am thinking is if you really need 3000 faces. Is that practical to actually make ?</p>
<p dir="auto">Also issue could be in the code that sends your data to WEBGL.</p>
<p dir="auto">can you try to run it inside:<br />
<a href="http://3d.hrg.hr/jscad/three/threejscad2.html" rel="nofollow ugc">http://3d.hrg.hr/jscad/three/threejscad2.html</a><br />
?</p>
]]></description><link>https://openjscad.nodebb.com/post/1108</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/1108</guid><dc:creator><![CDATA[hrgdavor]]></dc:creator><pubDate>Fri, 04 Feb 2022 22:43:12 GMT</pubDate></item><item><title><![CDATA[Reply to Unfolder V2, stress test on FF and Chrome on Fri, 04 Feb 2022 19:59:07 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/152">@hrgdavor</a> Hello, I revised my code, and I it seems to be compatible with js garbage collection. Chrome's crash happens after I my code after my main return and it's not a matter of memory, when it happens 40% of RAM is free.</p>
<p dir="auto"><img src="/assets/uploads/files/1644002834211-capture-d-%C3%A9cran-de-2022-02-04-16-57-52.png" alt="Capture d’écran de 2022-02-04 16-57-52.png" class=" img-responsive img-markdown" /><br />
There is maybe a memory limit for Chrome on jscad rendering ? There's maybe an issue on my code because for the model that crashes Chrome, Firefox renders pages with overflowed faces which should not happen.</p>
<p dir="auto">I just tried a 3000 faces model with Firefox, it renders in 2 minutes but hangs and never stops, debugger says "uncaught out of memory".</p>
<p dir="auto"><img src="/assets/uploads/files/1644004623983-capture-d-%C3%A9cran-de-2022-02-04-20-54-49.png" alt="Capture d’écran de 2022-02-04 20-54-49.png" class=" img-responsive img-markdown" /></p>
]]></description><link>https://openjscad.nodebb.com/post/1107</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/1107</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Fri, 04 Feb 2022 19:59:07 GMT</pubDate></item><item><title><![CDATA[Reply to Unfolder V2, stress test on FF and Chrome on Thu, 03 Feb 2022 09:01:35 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/152">@hrgdavor</a> Thanks for the info, I will try to remove references to my objects.</p>
]]></description><link>https://openjscad.nodebb.com/post/1106</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/1106</guid><dc:creator><![CDATA[gilboonet]]></dc:creator><pubDate>Thu, 03 Feb 2022 09:01:35 GMT</pubDate></item><item><title><![CDATA[Reply to Unfolder V2, stress test on FF and Chrome on Thu, 03 Feb 2022 08:38:24 GMT]]></title><description><![CDATA[<p dir="auto"><a class="plugin-mentions-user plugin-mentions-a" href="https://openjscad.nodebb.com/uid/5">@gilboonet</a> JS uses a garbage collector, so to release memory you need to remove references to objects.</p>
<p dir="auto">One advanced trick when caching stuff is using WakMap <a href="https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap" rel="nofollow ugc">https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/WeakMap</a> . This is a familiar concept to me from Java. It allows you to cache some heavy calculations but also allows garbage collector to delete them.</p>
<p dir="auto">Initial versions of garbage collectors counted references and when counter is zero they clean the mem. Then they added a concept of weak references where, you could reference something weakly, but allow garbage collector to clear it if RAM is needed.</p>
<p dir="auto">chrome dev tools has a nice profiler, probably firefox too, and you could use that to see where most of RAM is spent.</p>
]]></description><link>https://openjscad.nodebb.com/post/1104</link><guid isPermaLink="true">https://openjscad.nodebb.com/post/1104</guid><dc:creator><![CDATA[hrgdavor]]></dc:creator><pubDate>Thu, 03 Feb 2022 08:38:24 GMT</pubDate></item></channel></rss>