Re: Performance and rendering quality degradation between Batik Squiggle 1.9 and 1.11

Kirill Grouchnikov <[email protected]> Sat, 17 Aug 2019 19:10:40 -0400
Newsgroups gmane.text.xml.batik.user
Message-ID <CAMRG33Z_GYQDEY0Dszjr5NMfPe3V22v34FDDOcuvqXt2m5m2wg@mail.gmail.com>
--000000000000ec1ad90590583750
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

Maybe something from here -
https://news.kynosarges.org/2019/03/24/swing-high-dpi-properties/

On Sat, Aug 17, 2019, 17:45 John-Val Rose <[email protected]> wrote=
:

> Hi Kirill, that=E2=80=99s exactly what I was thinking, especially given t=
hat this
> is a hi-res 4K monitor.
>
>
>
> I had Windows display settings to scale 150% but when I put it to 100% I
> found that the issues went away (albeit that it=E2=80=99s almost impossib=
le to read
> icon text etc.).
>
>
>
> So, is there anything that can be done about this at the Java level or th=
e
> Batik level?  Maybe some command line arguments to handle the hi-DPI
> scaling?
>
>
>
> Graciously,
>
>
>
> John-Val
>
>
> ------------------------------
> *From:* Kirill Grouchnikov <[email protected]>
> *Sent:* Sunday, August 18, 2019 7:39:16 AM
> *To:* [email protected] <
> [email protected]>
> *Subject:* Re: Performance and rendering quality degradation between
> Batik Squiggle 1.9 and 1.11
>
> Maybe it the high-DPI support added to Java in one of the newer releases,
> and some kind of legacy fallback for apps that don't opt into something?
>
> On Sat, Aug 17, 2019 at 4:02 PM John-Val Rose <[email protected]>
> wrote:
>
>> OK, after a bit more digging, I stand corrected.
>>
>>
>>
>> There doesn=E2=80=99t appear to be any of the aforementioned degradation=
s in
>> Batik itself; the issue is with which version of Java you run Squiggle w=
ith.
>>
>>
>>
>> I have found that all Java versions after JDK 8 show this slower scaling
>> and poorer rendering quality.  Even just the splash screen is very
>> noticeably more pixelated and SVGs themselves are more grainy.
>>
>>
>>
>> I=E2=80=99ve attached some screenshots of both the splash screen and the=
 tiger
>> SVG using Java 8 versus Java 10.
>>
>>
>>
>> Does anyone know why this is the way it is?
>>
>>
>>
>> Graciously,
>>
>>
>>
>> John-Val
>>
>>
>>
>> *From: *Helder Magalh=C3=A3es <[email protected]>
>> *Sent: *Saturday, 17 August 2019 21:36
>> *To: *[email protected]
>> *Subject: *Re: Performance and rendering quality degradation between
>> Batik Squiggle 1.9 and 1.11
>>
>>
>>
>> Hi John,
>>
>>
>>
>> Could you elaborate a bit on the comparison?
>>
>> 1. Is it between the same Operating System? And same OS version? Please
>> state which one/ones are they.
>>
>> 2. Is it between the same JRE/JDK (Oracle/OpenJDK/etc.)? And same
>> versions? Please state which one/ones are they.
>>
>>
>>
>> Also, given it's a quality difference, one or two pairs of screenshots
>> between same content in the two environments would quite improve the
>> explanation.
>>
>>
>> Regards,
>> Helder Magalh=C3=A3es
>>
>>
>>
>> A S=C3=A1b, 17/08/2019, 06:54, John-Val Rose <[email protected]>
>> escreveu:
>>
>> Does anyone know why there appears to be a noticeable degradation in bot=
h
>> rendering/scaling performance and also in rendering quality of SVGs in
>> Squiggle between Batik 1.9 and 1.11?
>>
>>
>>
>> What are the major changes that may have resulted in this degradation?
>>
>>
>>
>> Graciously,
>>
>>
>>
>> John-Val
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: [email protected]
>> For additional commands, e-mail: [email protected]
>
>

--000000000000ec1ad90590583750
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

<div dir=3D"auto">Maybe something from here -=C2=A0<a href=3D"https://news.=
kynosarges.org/2019/03/24/swing-high-dpi-properties/">https://news.kynosarg=
es.org/2019/03/24/swing-high-dpi-properties/</a></div><br><div class=3D"gma=
il_quote"><div dir=3D"ltr" class=3D"gmail_attr">On Sat, Aug 17, 2019, 17:45=
 John-Val Rose &lt;[email protected]&gt; wrote:<br></div><blockquot=
e class=3D"gmail_quote" style=3D"margin:0 0 0 .8ex;border-left:1px #ccc sol=
id;padding-left:1ex">



<div>


<div class=3D"m_-3232951607921801635WordSection1">
<p class=3D"MsoNormal">Hi Kirill, that=E2=80=99s exactly what I was thinkin=
g, especially given that this is a hi-res 4K monitor.</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">I had Windows display settings to scale 150% but whe=
n I put it to 100% I found that the issues went away (albeit that it=E2=80=
=99s almost impossible to read icon text etc.).</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">So, is there anything that can be done about this at=
 the Java level or the Batik level?=C2=A0 Maybe some command line arguments=
 to handle the hi-DPI scaling?</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">Graciously,</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">John-Val</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
<hr style=3D"display:inline-block;width:98%">
<div id=3D"m_-3232951607921801635divRplyFwdMsg" dir=3D"ltr"><font face=3D"C=
alibri, sans-serif" style=3D"font-size:11pt" color=3D"#000000"><b>From:</b>=
 Kirill Grouchnikov &lt;<a href=3D"mailto:[email protected]" tar=
get=3D"_blank" rel=3D"noreferrer">[email protected]</a>&gt;<br>
<b>Sent:</b> Sunday, August 18, 2019 7:39:16 AM<br>
<b>To:</b> <a href=3D"mailto:[email protected]" target=3D"=
_blank" rel=3D"noreferrer">[email protected]</a> &lt;<a hr=
ef=3D"mailto:[email protected]" target=3D"_blank" rel=3D"n=
oreferrer">[email protected]</a>&gt;<br>
<b>Subject:</b> Re: Performance and rendering quality degradation between B=
atik Squiggle 1.9 and 1.11</font>
<div>=C2=A0</div>
</div>
<div>
<div dir=3D"ltr">Maybe it the high-DPI support added to Java in one of the =
newer releases, and some kind of legacy fallback for apps that don&#39;t op=
t into something?</div>
<br>
<div class=3D"gmail_quote">
<div dir=3D"ltr" class=3D"gmail_attr">On Sat, Aug 17, 2019 at 4:02 PM John-=
Val Rose &lt;[email protected]&gt; wrote:<br>
</div>
<blockquote class=3D"gmail_quote" style=3D"margin:0px 0px 0px 0.8ex;border-=
left:1px solid rgb(204,204,204);padding-left:1ex">
<div lang=3D"EN-AU">
<div class=3D"m_-3232951607921801635gmail-m_-7294796290040195857WordSection=
1">
<p class=3D"MsoNormal">OK, after a bit more digging, I stand corrected.</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">There doesn=E2=80=99t appear to be any of the aforem=
entioned degradations in Batik itself; the issue is with which version of J=
ava you run Squiggle with.</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">I have found that all Java versions after JDK 8 show=
 this slower scaling and poorer rendering quality.=C2=A0 Even just the spla=
sh screen is very noticeably more pixelated and SVGs themselves are more gr=
ainy.</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">I=E2=80=99ve attached some screenshots of both the s=
plash screen and the tiger SVG using Java 8 versus Java 10.</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">Does anyone know why this is the way it is?</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">Graciously,</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">John-Val</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<div style=3D"border-right:none;border-bottom:none;border-left:none;border-=
top:1pt solid rgb(225,225,225);padding:3pt 0cm 0cm">
<p class=3D"MsoNormal" style=3D"border:none;padding:0cm"><b>From: </b><a hr=
ef=3D"mailto:[email protected]" target=3D"_blank" rel=3D"noreferre=
r">Helder Magalh=C3=A3es</a><br>
<b>Sent: </b>Saturday, 17 August 2019 21:36<br>
<b>To: </b><a href=3D"mailto:[email protected]" target=3D"=
_blank" rel=3D"noreferrer">[email protected]</a><br>
<b>Subject: </b>Re: Performance and rendering quality degradation between B=
atik Squiggle 1.9 and 1.11</p>
</div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<p class=3D"MsoNormal">Hi John, <u></u><u></u></p>
<div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
<div>
<p class=3D"MsoNormal">Could you elaborate a bit on the comparison?<u></u><=
u></u></p>
</div>
<div>
<p class=3D"MsoNormal">1. Is it between the same Operating System? And same=
 OS version? Please state which one/ones are they.<u></u><u></u></p>
</div>
<div>
<p class=3D"MsoNormal">2. Is it between the same JRE/JDK (Oracle/OpenJDK/et=
c.)? And same versions?=C2=A0<span style=3D"font-family:Arial,sans-serif">P=
lease state which one/ones are they.</span><u></u><u></u></p>
</div>
<div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
<div>
<p class=3D"MsoNormal">Also, given it&#39;s a quality difference, one or tw=
o pairs of screenshots between same content in the two environments would q=
uite improve the explanation.<u></u><u></u></p>
<div>
<p class=3D"MsoNormal"><br>
Regards,<br>
Helder Magalh=C3=A3es<u></u><u></u></p>
</div>
</div>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
<div>
<div>
<p class=3D"MsoNormal">A S=C3=A1b, 17/08/2019, 06:54, John-Val Rose &lt;joh=
[email protected]&gt; escreveu:<u></u><u></u></p>
</div>
<blockquote style=3D"border-top:none;border-right:none;border-bottom:none;b=
order-left:1pt solid rgb(204,204,204);padding:0cm 0cm 0cm 6pt;margin-left:4=
.8pt;margin-right:0cm">
<div>
<div>
<p class=3D"MsoNormal">Does anyone know why there appears to be a noticeabl=
e degradation in both rendering/scaling performance and also in rendering q=
uality of SVGs in Squiggle between Batik 1.9 and 1.11?</p>
<p class=3D"MsoNormal">=C2=A0</p>
<p class=3D"MsoNormal">What are the major changes that may have resulted in=
 this degradation?</p>
<p class=3D"MsoNormal">=C2=A0</p>
<p class=3D"MsoNormal">Graciously,</p>
<p class=3D"MsoNormal">=C2=A0</p>
</div>
</div>
</blockquote>
</div>
<p class=3D"MsoNormal" style=3D"margin-left:4.8pt">John-Val</p>
<p class=3D"MsoNormal"><u></u>=C2=A0<u></u></p>
</div>
</div>
<br>
---------------------------------------------------------------------<br>
To unsubscribe, e-mail: <a href=3D"mailto:batik-users-unsubscribe@xmlgraphi=
cs.apache.org" target=3D"_blank" rel=3D"noreferrer">
[email protected]</a><br>
For additional commands, e-mail: <a href=3D"mailto:batik-users-help@xmlgrap=
hics.apache.org" target=3D"_blank" rel=3D"noreferrer">
[email protected]</a></blockquote>
</div>
</div>
</div>

</blockquote></div>

--000000000000ec1ad90590583750--