Re: Battles are running at 0-3 fps
fnl <[email protected]> Thu, 22 Aug 2024 10:33:21 -0700 (PDT)
| Newsgroups | gmane.comp.java.robocode |
|---|---|
| Message-ID | <[email protected]> |
------=_Part_73972_1144941686.1724348001795 Content-Type: multipart/alternative; boundary="----=_Part_73973_2112502676.1724348001795" ------=_Part_73973_2112502676.1724348001795 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable 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-a= nd-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, or= =20 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-a= nd-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 to= =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 an= y=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 on the web visit https://groups.google.com/d/msgid/= robocode/806301e9-4e8f-4ad8-bce8-8f8581a25bebn%40googlegroups.com. ------=_Part_73973_2112502676.1724348001795 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable <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 Java implementation = coming from a specific vendor or some settings on your system.</div><div><b= r /></div><div>The newest version of Robocode comes with a java2d.bat file = (Windows) and java2d.sh file (Linux / macOS) that is run when using robocod= e.bat for running Robocode.</div><div>The content of this file looks like t= his (java2d.bat):<br /><br /><div style=3D"color: rgb(204, 204, 204); backg= round-color: rgb(31, 31, 31); font-family: Consolas, "Courier New"= ;, monospace; line-height: 19px; white-space: pre;"><div><span style=3D"col= or: 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><sp= an style=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 cont= ributors</span></div><div><span style=3D"color: rgb(212, 212, 212);">@</spa= n><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 accompanyin= g 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"col= or: rgb(106, 153, 85);"> are made available under the terms of the Eclipse = Public License v1.0</span></div><div><span style=3D"color: rgb(212, 212, 21= 2);">@</span><span style=3D"color: rgb(86, 156, 214);">rem</span><span styl= e=3D"color: rgb(106, 153, 85);"> which accompanies this distribution, and i= s available at</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);"> https://robocode.sourceforge.io/license/epl-v10= .html</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><span s= tyle=3D"color: rgb(212, 212, 212);">@</span><span style=3D"color: rgb(86, 1= 56, 214);">echo</span> <span style=3D"color: rgb(86, 156, 214);">off</span>= </div><br /><div><span style=3D"color: rgb(212, 212, 212);">@</span><span s= tyle=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);">rem</span><span style=3D"color: rgb(106, 153, 8= 5);"> 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 sett= ings here:</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"colo= r: rgb(106, 153, 85);"> Link: https://docs.oracle.com/javase/10/troubleshoo= t/java-2d-pipeline-rendering-and-properties.htm#JSTGD438</span></div><br />= <div><span style=3D"color: rgb(212, 212, 212);">@</span><span style=3D"colo= r: rgb(86, 156, 214);">rem</span><span style=3D"color: rgb(106, 153, 85);">= Enable or disable Direct3D acceleration (true/false)</span></div><div><spa= n style=3D"color: rgb(86, 156, 214);">set</span> <span 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"c= olor: rgb(106, 153, 85);"> Get detailed information about the startup proce= dures of the Java 2D pipeline when using</span></div><div><span style=3D"co= lor: 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 ac= celeration. Remove the @rem from next line to enable the tracing:</span></d= iv><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: rg= b(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</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);"> Use ref to use the rasterizer from Microsoft</span></div><div><spa= n 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, 21= 2, 212);">=3D</span>ref</div></div></div><div><br /></div><div>Try to adjus= t these settings. You might also try to add settings for OpenGL, or other o= ptions.<br /><br />Have a look at this homepage to see, if some properties = changes anything for you?<br />https://docs.oracle.com/javase/10/troublesho= ot/java-2d-pipeline-rendering-and-properties.htm#JSTGD428<br /><br />If you= find a solution, don't hesitate 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>- Flemming<br /><br /></div><div class=3D"gmail_quot= e"><div dir=3D"auto" class=3D"gmail_attr">l=C3=B8rdag den 12. august 2023 k= l. 23.41.36 UTC+2 skrev Blah doo blah:<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;">Just redownloaded robocode 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 any fixes for this. My PC i= s good enough that I am getting at least 100 fps on most modern games and m= y pc isn't under any strain at all from robocode, so it doesn't see= m to be using anything</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 on the web visit <a href=3D"https://groups.google.c= om/d/msgid/robocode/806301e9-4e8f-4ad8-bce8-8f8581a25bebn%40googlegroups.co= m?utm_medium=3Demail&utm_source=3Dfooter">https://groups.google.com/d/msgid= /robocode/806301e9-4e8f-4ad8-bce8-8f8581a25bebn%40googlegroups.com</a>.<br = /> ------=_Part_73973_2112502676.1724348001795-- ------=_Part_73972_1144941686.1724348001795--