Re: Battles are running at 0-3 fps
fnl <[email protected]> Wed, 28 May 2025 08:38:14 -0700 (PDT)
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_275970_1198460523.1748446694486 Content-Type: multipart/alternative; boundary="----=_Part_275971_1420512274.1748446694486" ------=_Part_275971_1420512274.1748446694486 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Abraham, Robocode will run just fine on a healthy Java installation. So you could=20 try to re-install your Java, or try another vendor. I recommend Oracle Java= =20 JDK 21 <https://www.oracle.com/java/technologies/downloads/#java21> or Adop= tium=20 Temurin JDK 21=20 <https://adoptium.net/en-GB/temurin/releases/?os=3Dany&arch=3Dany&version= =3D21>. Note that Robocode does not support Java 24 and newer. Try that first. Otherwise, make a copy of your java2d.bat/.sh file, and experiment with the= =20 setting or e.g. remove all content from the file. I hope it works out for you. Cheers, - Flemming tirsdag den 27. maj 2025 kl. 06.25.10 UTC+2 skrev Abraham Boulter: > 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/a0= f22a5e-257e-4209-b52e-1c39cebb6bb2n%40googlegroups.com. ------=_Part_275971_1420512274.1748446694486 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Hi Abraham,<br /><br />Robocode will run just fine on a healthy Java instal= lation. So you could try to re-install your Java, or try another vendor. I = recommend <a href=3D"https://www.oracle.com/java/technologies/downloads/#ja= va21">Oracle Java JDK 21</a>=C2=A0or <a href=3D"https://adoptium.net/en-GB/= temurin/releases/?os=3Dany&arch=3Dany&version=3D21">Adoptium Temuri= n JDK 21</a>.<br />Note that Robocode does not support Java 24 and newer.<b= r /><br />Try that first.<br /><br />Otherwise, make a copy of your java2d.= bat/.sh file, and experiment with the setting or e.g. remove all content fr= om the file.<br /><br />I hope it works out for you.<br /><br />Cheers,<br = />- Flemming<br /><br /><div class=3D"gmail_quote"><div dir=3D"auto" class= =3D"gmail_attr">tirsdag den 27. maj 2025 kl. 06.25.10 UTC+2 skrev Abraham B= oulter:<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 "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"><div dir=3D"auto" class=3D"gmail_attr">On Thursday, August= 22, 2024 at 1:33:21=E2=80=AFPM UTC-4 fnl wrote:<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"><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 coul= d be the Java implementation coming from a specific vendor or some settings= on your system.</div><div><br></div><div>The newest version of Robocode co= mes with a java2d.bat file (Windows) and java2d.sh file (Linux / macOS) tha= t is run when using robocode.bat for running Robocode.</div><div>The conten= t 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,"Cou= rier New",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)">r= em</span></div><div><span style=3D"color:rgb(212,212,212)">@</span><span st= yle=3D"color:rgb(86,156,214)">rem</span><span style=3D"color:rgb(106,153,85= )"> Copyright (c) 2001-2023 Mathew A. Nelson and Robocode contributors</spa= n></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)"> All= rights reserved. 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,214)">rem</span><span style=3D"color:rgb(106,153,85)"> are made ava= ilable under the terms of the Eclipse Public License 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(106,153,85)"> which accompanie= s this distribution, and is available at</span></div><div><span style=3D"co= lor:rgb(212,212,212)">@</span><span style=3D"color:rgb(86,156,214)">rem</sp= an><span style=3D"color:rgb(106,153,85)"> <a href=3D"https://robocode.sourc= eforge.io/license/epl-v10.html" rel=3D"nofollow" target=3D"_blank" data-saf= eredirecturl=3D"https://www.google.com/url?hl=3Dda&q=3Dhttps://robocode= .sourceforge.io/license/epl-v10.html&source=3Dgmail&ust=3D174853260= 0022000&usg=3DAOvVaw0fVnp6GRPZ-SQ1_NiQVlYb">https://robocode.sourceforg= e.io/license/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><b= r><div><span 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</spa= n></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)">= ------------------------------------------------------</span></div><div><s= pan style=3D"color:rgb(212,212,212)">@</span><span style=3D"color:rgb(86,15= 6,214)">rem</span><span style=3D"color:rgb(106,153,85)"> Setup Java 2D Pipe= line Rendering options</span></div><div><span style=3D"color:rgb(212,212,21= 2)">@</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><sp= an style=3D"color:rgb(86,156,214)">rem</span><span style=3D"color:rgb(106,1= 53,85)"> Read about settings here:</span></div><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)"> Link: <a href=3D"https://docs.oracle.co= m/javase/10/troubleshoot/java-2d-pipeline-rendering-and-properties.htm#JSTG= D438" rel=3D"nofollow" target=3D"_blank" data-saferedirecturl=3D"https://ww= w.google.com/url?hl=3Dda&q=3Dhttps://docs.oracle.com/javase/10/troubles= hoot/java-2d-pipeline-rendering-and-properties.htm%23JSTGD438&source=3D= gmail&ust=3D1748532600022000&usg=3DAOvVaw1qdrVzRZ3HmNPohWfMCo7X">ht= tps://docs.oracle.com/javase/10/troubleshoot/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)"> Enable or disable Direct3D acceleration (= true/false)</span></div><div><span style=3D"color:rgb(86,156,214)">set</spa= n> <span style=3D"color:rgb(156,220,254)">J2D_D3D</span><span style=3D"colo= r:rgb(212,212,212)">=3D</span>true</div><br><div><span style=3D"color:rgb(2= 12,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= procedures of the Java 2D pipeline when using</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)"> OpenGL or Direct3D accelera= tion. Remove the @rem from next line to enable the tracing:</span></div><di= v><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"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)"> Set the Direct3D rasterizer to o= ne 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 f= rom Microsoft</span></div><div><span style=3D"color:rgb(86,156,214)">set</s= pan> <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 f= or OpenGL, 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.oracl= e.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=3Dda&q=3Dhttps://docs.oracle.com/javase/10/trou= bleshoot/java-2d-pipeline-rendering-and-properties.htm%23JSTGD428&sourc= e=3Dgmail&ust=3D1748532600023000&usg=3DAOvVaw1jIb3ffoXsCXLTR66Uk8q8= ">https://docs.oracle.com/javase/10/troubleshoot/java-2d-pipeline-rendering= -and-properties.htm#JSTGD428</a><br><br>If you find a solution, don't h= esitate 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>- Fl= emming<br><br></div><div class=3D"gmail_quote"></div><div class=3D"gmail_qu= ote"><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= _quote"><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">Just redownloaded roboc= ode for 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 a= ny fixes for this. My PC is good enough that I am getting at least 100 fps = on most modern games and my pc isn't under any strain at all from roboc= ode, so it doesn't seem to be using anything</blockquote></div></blockq= uote></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/a0f22a5e-257e-4209-b52e-1c39cebb6bb2n%40googlegroups.com?utm_mediu= m=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid/robocode/a= 0f22a5e-257e-4209-b52e-1c39cebb6bb2n%40googlegroups.com</a>.<br /> ------=_Part_275971_1420512274.1748446694486-- ------=_Part_275970_1198460523.1748446694486--