Re: Battles are running at 0-3 fps
Abraham Boulter <[email protected]> Mon, 26 May 2025 16:35:42 -0700 (PDT)
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_235434_1206032434.1748302542409 Content-Type: multipart/alternative; boundary="----=_Part_235435_1215409491.1748302542409" ------=_Part_235435_1215409491.1748302542409 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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) and= =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 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-rendering= -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 2D= =20 > 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-rendering= -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 t= o=20 >> 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 that= I=20 >> am getting at least 100 fps on most modern games and my pc isn't under a= ny=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/ec= ff778f-3787-476e-98eb-15c54382dc37n%40googlegroups.com. ------=_Part_235435_1215409491.1748302542409 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hello,<div>In case anyone is still having this problem. For me I used "set = sun.java2d.opengl=3Dtrue" and disabled the Direct3D by using "set J2D_D3D= =3Dfalse" instead of "true."<br /><br /></div><div class=3D"gmail_quote"><d= iv dir=3D"auto" class=3D"gmail_attr">On Thursday, August 22, 2024 at 1:33:2= 1=E2=80=AFPM UTC-4 fnl wrote:<br/></div><blockquote class=3D"gmail_quote" s= tyle=3D"margin: 0 0 0 0.8ex; border-left: 1px solid rgb(204, 204, 204); pad= ding-left: 1ex;"><div>I don't know what is wrong. It could be an issue = between Java and the graphics drivers. =F0=9F=A4=94<br>Or it could be the J= ava implementation coming from a specific vendor or some settings on your s= ystem.</div><div><br></div><div>The newest version of Robocode comes with a= java2d.bat file (Windows) and java2d.sh file (Linux / macOS) that is run w= hen using robocode.bat for running Robocode.</div><div>The content of this = file looks like this (java2d.bat):<br><br><div style=3D"color:rgb(204,204,2= 04);background-color:rgb(31,31,31);font-family:Consolas,"Courier New&q= uot;,monospace;line-height:19px;white-space: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(212,212,212)">@</span><span style=3D"col= or:rgb(86,156,214)">rem</span><span style=3D"color:rgb(106,153,85)"> Copyri= ght (c) 2001-2023 Mathew A. Nelson and Robocode contributors</span></div><d= iv><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)"> All rights re= served. This program and the accompanying materials</span></div><div><span = style=3D"color:rgb(212,212,212)">@</span><span style=3D"color:rgb(86,156,21= 4)">rem</span><span style=3D"color:rgb(106,153,85)"> are made available und= er the terms of the Eclipse Public License v1.0</span></div><div><span styl= e=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)"> which accompanies this dis= tribution, and is available at</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)"> <a href=3D"https://robocode.sourceforge.io/= license/epl-v10.html" target=3D"_blank" rel=3D"nofollow" data-saferedirectu= rl=3D"https://www.google.com/url?hl=3Den&q=3Dhttps://robocode.sourcefor= ge.io/license/epl-v10.html&source=3Dgmail&ust=3D1748388142031000&am= p;usg=3DAOvVaw2M7OuEKAVCz3h6PEW5tEgc">https://robocode.sourceforge.io/licen= se/epl-v10.html</a></span></div><div><span style=3D"color:rgb(212,212,212)"= >@</span><span style=3D"color:rgb(86,156,214)">rem</span></div><br><div><sp= an style=3D"color:rgb(212,212,212)">@</span><span style=3D"color:rgb(86,156= ,214)">echo</span> <span style=3D"color:rgb(86,156,214)">off</span></div><b= r><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><div><span style= =3D"color:rgb(212,212,212)">@</span><span style=3D"color:rgb(86,156,214)">r= em</span><span style=3D"color:rgb(106,153,85)"> Setup Java 2D Pipeline Rend= ering options</span></div><div><span style=3D"color:rgb(212,212,212)">@</sp= an><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,21= 2,212)">@</span><span style=3D"color: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-pipeline-rendering-and-properties.htm#JSTGD438" ta= rget=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www.google= .com/url?hl=3Den&q=3Dhttps://docs.oracle.com/javase/10/troubleshoot/jav= a-2d-pipeline-rendering-and-properties.htm%23JSTGD438&source=3Dgmail&am= p;ust=3D1748388142031000&usg=3DAOvVaw2lrXOY12Cx5f6hpPS3wfrE">https://do= cs.oracle.com/javase/10/troubleshoot/java-2d-pipeline-rendering-and-propert= ies.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)"> Enable or disable Direct3D acceleration (true/f= alse)</span></div><div><span style=3D"color:rgb(86,156,214)">set</span> <sp= an style=3D"color:rgb(156,220,254)">J2D_D3D</span><span style=3D"color:rgb(= 212,212,212)">=3D</span>true</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)"> Get detailed information about the startup proc= edures of the Java 2D pipeline when using</span></div><div><span style=3D"c= olor:rgb(212,212,212)">@</span><span style=3D"color:rgb(86,156,214)">rem</s= pan><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><sp= an style=3D"color:rgb(86,156,214)">rem</span><span style=3D"color:rgb(106,1= 53,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, or 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 M= icrosoft</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 Op= enGL, or other options.<br><br>Have 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#JSTGD= 428" target=3D"_blank" rel=3D"nofollow" data-saferedirecturl=3D"https://www= .google.com/url?hl=3Den&q=3Dhttps://docs.oracle.com/javase/10/troublesh= oot/java-2d-pipeline-rendering-and-properties.htm%23JSTGD428&source=3Dg= mail&ust=3D1748388142031000&usg=3DAOvVaw1ZUwuEKYN1yEExF0KszBOk">htt= ps://docs.oracle.com/javase/10/troubleshoot/java-2d-pipeline-rendering-and-= properties.htm#JSTGD428</a><br><br>If you find a solution, don't hesita= te writing back with what worked out for you. Then I will incorporate this = into Robocode as default. =F0=9F=98=8A</div><br>Best regards,<div>- Flemmin= g<br><br></div><div class=3D"gmail_quote"></div><div class=3D"gmail_quote">= <div dir=3D"auto" class=3D"gmail_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_quot= e"><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 0.8ex;border-lef= t:1px solid rgb(204,204,204);padding-left:1ex">Just redownloaded robocode f= or the first time in years, and when I try to run a battle with sample bots= it's running at 0-3 fps which is not watchable at all. Is there any fi= xes for this. My PC is good enough that I am getting at least 100 fps on mo= st modern games and my pc isn't under any strain at all from robocode, = so it doesn't seem to be using anything</blockquote></div></blockquote>= </div> <p></p> -- <br /> You received this message because you are subscribed to the Google Groups &= quot;Robocode" 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/ecff778f-3787-476e-98eb-15c54382dc37n%40googlegroups.com?utm_mediu= m=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/robocode/e= cff778f-3787-476e-98eb-15c54382dc37n%40googlegroups.com</a>.<br /> ------=_Part_235435_1215409491.1748302542409-- ------=_Part_235434_1206032434.1748302542409--