Re: update / new features

Jean-Pierre Delange via ntg-context <[email protected]> Wed, 29 Jul 2026 16:09:54 +0200
Newsgroups gmane.comp.tex.context
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--===============7837670700826710780==
Content-Type: multipart/alternative;
 boundary="------------JjEKjtQ5MaZjBOaJwzDMqnXP"
Content-Language: fr

This is a multi-part message in MIME format.
--------------JjEKjtQ5MaZjBOaJwzDMqnXP
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: quoted-printable

Hi Hans,

I recompiled the reduced-range gyroid test (after changing the ranges=20
from |-2pi =E2=80=A6 2pi| to |-pi =E2=80=A6 pi| and adding the vector mes=
h as you=20
suggested) and reopened the resulting PDF in Acrobat.

The grey veil I initially saw was not persistent and was apparently an=20
artefact of the preview renderer. The newly generated PDF displays the=20
coloured gyroid correctly in Acrobat, without any grey opaque overlay.

The cached compilation took:

 =C2=A0 =C2=A0 MetaPost: 0.014 seconds
 =C2=A0 =C2=A0 ConTeXt runtime: 0.271 seconds

Acrobat remains responsive with the vector mesh enabled, although the=20
0.05 pt mesh lines are naturally very difficult to distinguish at=20
ordinary zoom levels.

So the PDF viewer stress test appears successful here (Adobe Acrobat Pro=20
64-bit, version 2026.001.21691, on Windows 11.).

JP

Le 29/07/2026 =C3=A0 15:40, Hans Hagen via ntg-context a =C3=A9crit=C2=A0=
:
> Hi,
>
>> So on this machine the cached run is roughly 27 times faster than the=20
>> initial run.
>
> Good.
>
>> The complete |context gyroid-test.tex| command performed both runs=20
>> automatically and was measured with |/usr/bin/time -v| as:
>>
>> |wall-clock time: 7.10 seconds maximum resident set size: 432,172 kB=20
>> CPU usage: 88% |
>
> single core (no gpu usage)
>
>> This means that, on this Ryzen 5 5600 machine, the initial=20
>> calculation is about twice as fast as the approximately 14 seconds=20
>> you reported, while the cached run is also somewhat faster than your=20
>> 0.45 seconds.
>
> Ok, that fits when i compare cpu speeds charts.
>
>> The bitmap output remains compact and responsive in the PDF viewer,=20
>> despite the mesh containing more than 1.2 million triangles.
>
> If you want to see the mesh ... best go for "pi" and not "2pi" ranges:
>
> =C2=A0=C2=A0=C2=A0 .....
> =C2=A0=C2=A0=C2=A0 normal=C2=A0=C2=A0 =3D "smooth",
> =C2=A0=C2=A0=C2=A0 vector=C2=A0=C2=A0 =3D true,
> ] ;
>
> lmt_scene_render ;
>
> draw lmt_scene_mesh "gyroid"
> =C2=A0=C2=A0=C2=A0 withpen pencircle scaled 0.05pt withcolor .8 ;
> ;
>
> A nice stress test for pdf viewers (i tested sumatra/mupdf and okular).
>
> Hans
>
> -----------------------------------------------------------------
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0 Hans Hagen | PRAGMA ADE
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
> =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tel: 038 477 53 69 | www.pragma-ad=
e.nl | www.pragma-pod.nl
> -----------------------------------------------------------------
> _______________________________________________________________________=
____________=20
>
> If your question is of interest to others as well, please add an entry=20
> to the Wiki!
>
> maillist : [email protected] /=20
> https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
> webpage=C2=A0 : https://www.pragma-ade.nl / https://context.aanhet.net=20
> (mirror)
> archive=C2=A0 : https://github.com/contextgarden/context
> wiki=C2=A0=C2=A0=C2=A0=C2=A0 : https://wiki.contextgarden.net
> _______________________________________________________________________=
____________=20
>
--------------JjEKjtQ5MaZjBOaJwzDMqnXP
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE html>
<html>
  <head>
    <meta http-equiv=3D"Content-Type" content=3D"text/html; charset=3DUTF=
-8">
  </head>
  <body>
    <p>Hi Hans,<br>
      <br>
      I recompiled the reduced-range gyroid test (after changing the
      ranges from <code data-start=3D"65" data-end=3D"77">-2pi =E2=80=A6 =
2pi</code>
      to <code data-start=3D"81" data-end=3D"91">-pi =E2=80=A6 pi</code> =
and adding
      the vector mesh as you suggested) and reopened the resulting PDF
      in Acrobat.<br>
      <br>
      The grey veil I initially saw was not persistent and was
      apparently an artefact of the preview renderer. The newly
      generated PDF displays the coloured gyroid correctly in Acrobat,
      without any grey opaque overlay.<br>
      <br>
      The cached compilation took:<br>
      <br>
      =C2=A0 =C2=A0 MetaPost: 0.014 seconds<br>
      =C2=A0 =C2=A0 ConTeXt runtime: 0.271 seconds<br>
      <br>
      Acrobat remains responsive with the vector mesh enabled, although
      the 0.05 pt mesh lines are naturally very difficult to distinguish
      at ordinary zoom levels.<br>
      <br>
      So the PDF viewer stress test appears successful here (Adobe
      Acrobat Pro 64-bit, version 2026.001.21691, on Windows 11.).<br>
      <br>
      JP</p>
    <div class=3D"moz-cite-prefix">Le 29/07/2026 =C3=A0 15:40, Hans Hagen=
 via
      ntg-context a =C3=A9crit=C2=A0:<br>
    </div>
    <blockquote type=3D"cite"
      cite=3D"mid:[email protected]">Hi,
      <br>
      <br>
      <blockquote type=3D"cite">So on this machine the cached run is
        roughly 27 times faster than the initial run.
        <br>
      </blockquote>
      <br>
      Good.
      <br>
      <br>
      <blockquote type=3D"cite">The complete |context gyroid-test.tex|
        command performed both runs automatically and was measured with
        |/usr/bin/time -v| as:
        <br>
        <br>
        |wall-clock time: 7.10 seconds maximum resident set size:
        432,172 kB CPU usage: 88% |
        <br>
      </blockquote>
      <br>
      single core (no gpu usage)
      <br>
      <br>
      <blockquote type=3D"cite">This means that, on this Ryzen 5 5600
        machine, the initial calculation is about twice as fast as the
        approximately 14 seconds you reported, while the cached run is
        also somewhat faster than your 0.45 seconds.
        <br>
      </blockquote>
      <br>
      Ok, that fits when i compare cpu speeds charts.
      <br>
      <br>
      <blockquote type=3D"cite">The bitmap output remains compact and
        responsive in the PDF viewer, despite the mesh containing more
        than 1.2 million triangles.
        <br>
      </blockquote>
      <br>
      If you want to see the mesh ... best go for "pi" and not "2pi"
      ranges:
      <br>
      <br>
      =C2=A0=C2=A0=C2=A0 .....
      <br>
      =C2=A0=C2=A0=C2=A0 normal=C2=A0=C2=A0 =3D "smooth",
      <br>
      =C2=A0=C2=A0=C2=A0 vector=C2=A0=C2=A0 =3D true,
      <br>
      ] ;
      <br>
      <br>
      lmt_scene_render ;
      <br>
      <br>
      draw lmt_scene_mesh "gyroid"
      <br>
      =C2=A0=C2=A0=C2=A0 withpen pencircle scaled 0.05pt withcolor .8 ;
      <br>
      ;
      <br>
      <br>
      A nice stress test for pdf viewers (i tested sumatra/mupdf and
      okular).
      <br>
      <br>
      Hans
      <br>
      <br>
      -----------------------------------------------------------------
      <br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=
=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0=C2=A0=C2=A0=C2=A0 Hans Hagen | PRAGMA ADE
      <br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=
=A0=C2=A0 Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
      <br>
      =C2=A0=C2=A0=C2=A0=C2=A0=C2=A0=C2=A0 tel: 038 477 53 69 | <a class=3D=
"moz-txt-link-abbreviated" href=3D"http://www.pragma-ade.nl">www.pragma-a=
de.nl</a> | <a class=3D"moz-txt-link-abbreviated" href=3D"http://www.prag=
ma-pod.nl">www.pragma-pod.nl</a>
      <br>
      -----------------------------------------------------------------
      <br>
_________________________________________________________________________=
__________
      <br>
      If your question is of interest to others as well, please add an
      entry to the Wiki!
      <br>
      <br>
      maillist : <a class=3D"moz-txt-link-abbreviated" href=3D"mailto:ntg=
[email protected]">[email protected]</a> /
      <a class=3D"moz-txt-link-freetext" href=3D"https://mailman.ntg.nl/m=
ailman3/lists/ntg-context.ntg.nl">https://mailman.ntg.nl/mailman3/lists/n=
tg-context.ntg.nl</a>
      <br>
      webpage=C2=A0 : <a class=3D"moz-txt-link-freetext" href=3D"https://=
www.pragma-ade.nl">https://www.pragma-ade.nl</a> / <a class=3D"moz-txt-li=
nk-freetext" href=3D"https://context.aanhet.net">https://context.aanhet.n=
et</a>
      (mirror)
      <br>
      archive=C2=A0 : <a class=3D"moz-txt-link-freetext" href=3D"https://=
github.com/contextgarden/context">https://github.com/contextgarden/contex=
t</a>
      <br>
      wiki=C2=A0=C2=A0=C2=A0=C2=A0 : <a class=3D"moz-txt-link-freetext" h=
ref=3D"https://wiki.contextgarden.net">https://wiki.contextgarden.net</a>
      <br>
_________________________________________________________________________=
__________
      <br>
    </blockquote>
  </body>
</html>

--------------JjEKjtQ5MaZjBOaJwzDMqnXP--

--===============7837670700826710780==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : [email protected] / https://mailman.ntg.nl/mailman3/lists/ntg-context.ntg.nl
webpage  : https://www.pragma-ade.nl / https://context.aanhet.net (mirror)
archive  : https://github.com/contextgarden/context
wiki     : https://wiki.contextgarden.net
___________________________________________________________________________________

--===============7837670700826710780==--