Re: Battles are running at 0-3 fps

Yongchao Song <[email protected]> Fri, 4 Jul 2025 06:30:36 -0700 (PDT)
Newsgroups gmane.comp.java.robocode
Message-ID <[email protected]>
------=_Part_427452_375324587.1751635836977
Content-Type: multipart/alternative; 
	boundary="----=_Part_427453_171477188.1751635836977"

------=_Part_427453_171477188.1751635836977
Content-Type: text/plain; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I just  "set J2D_D3D=3Dfalse",   it worked!

=E5=9C=A82025=E5=B9=B45=E6=9C=8827=E6=97=A5=E6=98=9F=E6=9C=9F=E4=BA=8C UTC+=
8 12:25:10<Abraham Boulter> =E5=86=99=E9=81=93=EF=BC=9A

> Hello,
> In case anyone is still having this problem. For me I used "set=20
> sun.java2d.opengl=3Dtrue" and disabled the Direct3D by using "set=20
> J2D_D3D=3Dfalse" instead of "true."
>
> On Thursday, August 22, 2024 at 1:33:21=E2=80=AFPM UTC-4 fnl wrote:
>
>> I don't know what is wrong. It could be an issue between Java and the=20
>> graphics drivers. =F0=9F=A4=94
>> Or it could be the Java implementation coming from a specific vendor or=
=20
>> some settings on your system.
>>
>> The newest version of Robocode comes with a java2d.bat file (Windows) an=
d=20
>> java2d.sh file (Linux / macOS) that is run when using robocode.bat for=
=20
>> running Robocode.
>> The content of this file looks like this (java2d.bat):
>>
>> @rem
>> @rem Copyright (c) 2001-2023 Mathew A. Nelson and Robocode contributors
>> @rem All rights reserved. This program and the accompanying materials
>> @rem are made available under the terms of the Eclipse Public License=20
>> v1.0
>> @rem which accompanies this distribution, and is available at
>> @rem https://robocode.sourceforge.io/license/epl-v10.html
>> @rem
>>
>> @echo off
>>
>> @rem ------------------------------------------------------
>> @rem Setup Java 2D Pipeline Rendering options
>> @rem ------------------------------------------------------
>>
>> @rem Read about settings here:
>> @rem Link:=20
>> https://docs.oracle.com/javase/10/troubleshoot/java-2d-pipeline-renderin=
g-and-properties.htm#JSTGD438
>>
>> @rem Enable or disable Direct3D acceleration (true/false)
>> set J2D_D3D=3Dtrue
>>
>> @rem Get detailed information about the startup procedures of the Java=
=20
>> 2D pipeline when using
>> @rem OpenGL or Direct3D acceleration. Remove the @rem from next line to=
=20
>> enable the tracing:
>> rem set J2D_TRACE_LEVEL=3D4
>>
>> @rem Set the Direct3D rasterizer to one of the following: ref, rgb, hal,=
=20
>> or tnl
>> @rem Use ref to use the rasterizer from Microsoft
>> set J2D_D3D_RASTERIZER=3Dref
>>
>> Try to adjust these settings. You might also try to add settings for=20
>> OpenGL, or other options.
>>
>> Have a look at this homepage to see, if some properties changes anything=
=20
>> for you?
>>
>> https://docs.oracle.com/javase/10/troubleshoot/java-2d-pipeline-renderin=
g-and-properties.htm#JSTGD428
>>
>> If you find a solution, don't hesitate writing back with what worked out=
=20
>> for you. Then I will incorporate this into Robocode as default. =F0=9F=
=98=8A
>>
>> Best regards,
>> - Flemming
>>
>> l=C3=B8rdag den 12. august 2023 kl. 23.41.36 UTC+2 skrev Blah doo blah:
>>
>>> Just redownloaded robocode for the first time in years, and when I try=
=20
>>> to run a battle with sample bots it's running at 0-3 fps which is not=
=20
>>> watchable at all. Is there any fixes for this. My PC is good enough tha=
t I=20
>>> am getting at least 100 fps on most modern games and my pc isn't under =
any=20
>>> strain at all from robocode, so it doesn't seem to be using anything
>>
>>

--=20
You received this message because you are subscribed to the Google Groups "=
Robocode" group.
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to [email protected].
To view this discussion visit https://groups.google.com/d/msgid/robocode/be=
0f0a58-a8df-4079-add8-d5fc76e71808n%40googlegroups.com.

------=_Part_427453_171477188.1751635836977
Content-Type: text/html; charset="UTF-8"
Content-Transfer-Encoding: quoted-printable

I just=C2=A0

"set J2D_D3D=3Dfalse",=C2=A0 =C2=A0it worked!<br /><br /><div class=3D"gmai=
l_quote"><div dir=3D"auto" class=3D"gmail_attr">=E5=9C=A82025=E5=B9=B45=E6=
=9C=8827=E6=97=A5=E6=98=9F=E6=9C=9F=E4=BA=8C UTC+8 12:25:10&lt;Abraham Boul=
ter> =E5=86=99=E9=81=93=EF=BC=9A<br/></div><blockquote class=3D"gmail_quote=
" style=3D"margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); =
padding-left: 1ex;">Hello,<div>In case anyone is still having this problem.=
 For me I used &quot;set sun.java2d.opengl=3Dtrue&quot; and disabled the Di=
rect3D by using &quot;set J2D_D3D=3Dfalse&quot; instead of &quot;true.&quot=
;<br><br></div><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gmail_=
attr">On Thursday, August 22, 2024 at 1:33:21=E2=80=AFPM UTC-4 fnl wrote:<b=
r></div><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 0.8ex;borde=
r-left:1px solid rgb(204,204,204);padding-left:1ex"><div>I don&#39;t know w=
hat is wrong. It could be an issue between Java and the graphics drivers. =
=F0=9F=A4=94<br>Or it could be the Java implementation coming from a specif=
ic vendor or some settings on your system.</div><div><br></div><div>The new=
est version of Robocode comes with a java2d.bat file (Windows) and java2d.s=
h file (Linux / macOS) that is run when using robocode.bat for running Robo=
code.</div><div>The content of this file looks like this (java2d.bat):<br><=
br><div style=3D"color:rgb(204,204,204);background-color:rgb(31,31,31);font=
-family:Consolas,&quot;Courier New&quot;,monospace;line-height:19px;white-s=
pace:pre"><div><span style=3D"color:rgb(212,212,212)">@</span><span style=
=3D"color:rgb(86,156,214)">rem</span></div><div><span style=3D"color:rgb(21=
2,212,212)">@</span><span style=3D"color:rgb(86,156,214)">rem</span><span s=
tyle=3D"color:rgb(106,153,85)"> Copyright (c) 2001-2023 Mathew A. Nelson an=
d Robocode contributors</span></div><div><span style=3D"color:rgb(212,212,2=
12)">@</span><span style=3D"color:rgb(86,156,214)">rem</span><span style=3D=
"color:rgb(106,153,85)"> All rights reserved. This program and the accompan=
ying materials</span></div><div><span style=3D"color:rgb(212,212,212)">@</s=
pan><span style=3D"color:rgb(86,156,214)">rem</span><span style=3D"color:rg=
b(106,153,85)"> are made available under the terms of the Eclipse Public Li=
cense v1.0</span></div><div><span style=3D"color:rgb(212,212,212)">@</span>=
<span style=3D"color:rgb(86,156,214)">rem</span><span style=3D"color:rgb(10=
6,153,85)"> which accompanies this distribution, and is available at</span>=
</div><div><span style=3D"color:rgb(212,212,212)">@</span><span style=3D"co=
lor:rgb(86,156,214)">rem</span><span style=3D"color:rgb(106,153,85)"> <a hr=
ef=3D"https://robocode.sourceforge.io/license/epl-v10.html" rel=3D"nofollow=
" target=3D"_blank" data-saferedirecturl=3D"https://www.google.com/url?hl=
=3Dzh-CN&amp;q=3Dhttps://robocode.sourceforge.io/license/epl-v10.html&amp;s=
ource=3Dgmail&amp;ust=3D1751721893628000&amp;usg=3DAOvVaw2A6SR37LeeSe35P8oJ=
ivuf">https://robocode.sourceforge.io/license/epl-v10.html</a></span></div>=
<div><span style=3D"color:rgb(212,212,212)">@</span><span style=3D"color:rg=
b(86,156,214)">rem</span></div><br><div><span style=3D"color:rgb(212,212,21=
2)">@</span><span style=3D"color:rgb(86,156,214)">echo</span> <span style=
=3D"color:rgb(86,156,214)">off</span></div><br><div><span style=3D"color:rg=
b(212,212,212)">@</span><span style=3D"color:rgb(86,156,214)">rem</span><sp=
an style=3D"color:rgb(106,153,85)"> ---------------------------------------=
---------------</span></div><div><span style=3D"color:rgb(212,212,212)">@</=
span><span style=3D"color:rgb(86,156,214)">rem</span><span style=3D"color:r=
gb(106,153,85)"> Setup Java 2D Pipeline Rendering options</span></div><div>=
<span style=3D"color:rgb(212,212,212)">@</span><span style=3D"color:rgb(86,=
156,214)">rem</span><span style=3D"color:rgb(106,153,85)"> ----------------=
--------------------------------------</span></div><br><div><span style=3D"=
color:rgb(212,212,212)">@</span><span style=3D"color:rgb(86,156,214)">rem</=
span><span style=3D"color:rgb(106,153,85)"> Read about settings here:</span=
></div><div><span style=3D"color:rgb(212,212,212)">@</span><span style=3D"c=
olor:rgb(86,156,214)">rem</span><span style=3D"color:rgb(106,153,85)"> Link=
: <a href=3D"https://docs.oracle.com/javase/10/troubleshoot/java-2d-pipelin=
e-rendering-and-properties.htm#JSTGD438" rel=3D"nofollow" target=3D"_blank"=
 data-saferedirecturl=3D"https://www.google.com/url?hl=3Dzh-CN&amp;q=3Dhttp=
s://docs.oracle.com/javase/10/troubleshoot/java-2d-pipeline-rendering-and-p=
roperties.htm%23JSTGD438&amp;source=3Dgmail&amp;ust=3D1751721893628000&amp;=
usg=3DAOvVaw1xSQdoGfqaEEw2B9zGHQD3">https://docs.oracle.com/javase/10/troub=
leshoot/java-2d-pipeline-rendering-and-properties.htm#JSTGD438</a></span></=
div><br><div><span style=3D"color:rgb(212,212,212)">@</span><span style=3D"=
color:rgb(86,156,214)">rem</span><span style=3D"color:rgb(106,153,85)"> Ena=
ble or disable Direct3D acceleration (true/false)</span></div><div><span st=
yle=3D"color:rgb(86,156,214)">set</span> <span style=3D"color:rgb(156,220,2=
54)">J2D_D3D</span><span style=3D"color:rgb(212,212,212)">=3D</span>true</d=
iv><br><div><span style=3D"color:rgb(212,212,212)">@</span><span style=3D"c=
olor:rgb(86,156,214)">rem</span><span style=3D"color:rgb(106,153,85)"> Get =
detailed information about the startup procedures of the Java 2D pipeline w=
hen using</span></div><div><span style=3D"color:rgb(212,212,212)">@</span><=
span style=3D"color:rgb(86,156,214)">rem</span><span style=3D"color:rgb(106=
,153,85)"> OpenGL or Direct3D acceleration. Remove the @rem from next line =
to enable the tracing:</span></div><div><span style=3D"color:rgb(86,156,214=
)">rem</span><span style=3D"color:rgb(106,153,85)"> set J2D_TRACE_LEVEL=3D4=
</span></div><br><div><span style=3D"color:rgb(212,212,212)">@</span><span =
style=3D"color:rgb(86,156,214)">rem</span><span style=3D"color:rgb(106,153,=
85)"> Set the Direct3D rasterizer to one of the following: ref, rgb, hal, o=
r tnl</span></div><div><span style=3D"color:rgb(212,212,212)">@</span><span=
 style=3D"color:rgb(86,156,214)">rem</span><span style=3D"color:rgb(106,153=
,85)"> Use ref to use the rasterizer from Microsoft</span></div><div><span =
style=3D"color:rgb(86,156,214)">set</span> <span style=3D"color:rgb(156,220=
,254)">J2D_D3D_RASTERIZER</span><span style=3D"color:rgb(212,212,212)">=3D<=
/span>ref</div></div></div><div><br></div><div>Try to adjust these settings=
. You might also try to add settings for OpenGL, or other options.<br><br>H=
ave a look at this homepage to see, if some properties changes anything for=
 you?<br><a href=3D"https://docs.oracle.com/javase/10/troubleshoot/java-2d-=
pipeline-rendering-and-properties.htm#JSTGD428" rel=3D"nofollow" target=3D"=
_blank" data-saferedirecturl=3D"https://www.google.com/url?hl=3Dzh-CN&amp;q=
=3Dhttps://docs.oracle.com/javase/10/troubleshoot/java-2d-pipeline-renderin=
g-and-properties.htm%23JSTGD428&amp;source=3Dgmail&amp;ust=3D17517218936280=
00&amp;usg=3DAOvVaw17q0b87C7TWA-c8U4cFBUF">https://docs.oracle.com/javase/1=
0/troubleshoot/java-2d-pipeline-rendering-and-properties.htm#JSTGD428</a><b=
r><br>If you find a solution, don&#39;t hesitate writing back with what wor=
ked out for you. Then I will incorporate this into Robocode as default. =F0=
=9F=98=8A</div><br>Best regards,<div>- Flemming<br><br></div><div class=3D"=
gmail_quote"></div><div class=3D"gmail_quote"><div dir=3D"auto" class=3D"gm=
ail_attr">l=C3=B8rdag den 12. august 2023 kl. 23.41.36 UTC+2 skrev Blah doo=
 blah:<br></div></div><div class=3D"gmail_quote"><blockquote class=3D"gmail=
_quote" style=3D"margin:0 0 0 0.8ex;border-left:1px solid rgb(204,204,204);=
padding-left:1ex">Just redownloaded robocode for the first time in years, a=
nd when I try to run a battle with sample bots it&#39;s running at 0-3 fps =
which is not watchable at all. Is there any fixes for this. My PC is good e=
nough that I am getting at least 100 fps on most modern games and my pc isn=
&#39;t under any strain at all from robocode, so it doesn&#39;t seem to be =
using anything</blockquote></div></blockquote></div></blockquote></div>

<p></p>

-- <br />
You received this message because you are subscribed to the Google Groups &=
quot;Robocode&quot; group.<br />
To unsubscribe from this group and stop receiving emails from it, send an e=
mail to <a href=3D"mailto:[email protected]">robocode+u=
[email protected]</a>.<br />
To view this discussion visit <a href=3D"https://groups.google.com/d/msgid/=
robocode/be0f0a58-a8df-4079-add8-d5fc76e71808n%40googlegroups.com?utm_mediu=
m=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/robocode/b=
e0f0a58-a8df-4079-add8-d5fc76e71808n%40googlegroups.com</a>.<br />

------=_Part_427453_171477188.1751635836977--

------=_Part_427452_375324587.1751635836977--