Seeking guidance regarding jittery behaviour observed after thousands of rounds #180
-
Royale and RLI have been using Royale for several weeks now to implement a Reinforcement Learning (RL) agent. Training an RL agent requires running thousands of rounds and adjusting learning parameters from experience as it is sampled during battle. Even for small state-spaces, many thousands of rounds are necessary. So while it is tempting to select So instead I run at about Any guidance that may allow me run simulations indefinitely would be appreciated :-).
|
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 7 replies
-
|
@sarkaria Process isolation: The GUI runs in its own private process. It also starts the server and booter, which each run in separate processes. Your bot likewise runs in its own process. Because of this, it’s unlikely that the GUI or server are directly affected by your bot—unless there’s an unexpected bug. Resource usage: The reinforcement process may consume significant system resources (CPU and memory). This can indirectly impact the performance of the server and GUI since they share the same operating system. I recommend opening Activity Monitor and checking the Java processes. You should be able to identify which ones correspond to your bot, the server, and the GUI, and then see how much CPU and memory each is using. Bot console logs: If you have a console window open with logging enabled, this can sometimes destabilize the GUI. Try running without the bot console to see if stability improves. (This issue may be resolved in future updates.) Standalone training: Consider running or training your bot using the server in standalone mode. Documentation is available on how to set this up. Training rounds and state persistence: It may help to limit the number of training rounds and implement a way to save the bot’s state or “memory.” That way, you can resume training in subsequent sessions without starting from scratch. |
Beta Was this translation helpful? Give feedback.
-
|
@sarkaria You can tryout the newest version 0.35.1 here |
Beta Was this translation helpful? Give feedback.
-
|
Thank you Flemming!
I look forward to try this out. (Sorry the New Year has started busy and I’ve not had a chance to resume my migration to Royale yet).
… On Jan 27, 2026, at 2:33 PM, Flemming N. Larsen ***@***.***> wrote:
@sarkaria <https://github.com/sarkaria>
I made some optimizations in the GUI recently. I hope this might help improving the jittery you have been experiencing?
You can tryout the newest version 0.35.1 here <https://github.com/robocode-dev/tank-royale/releases/tag/v0.35.1>
—
Reply to this email directly, view it on GitHub <#180 (comment)>, or unsubscribe <https://github.com/notifications/unsubscribe-auth/AHRB7XE2UOCJEWPY7KKNYF34I7RSDAVCNFSM6AAAAACPALI56KVHI2DSMVQWIX3LMV43URDJONRXK43TNFXW4Q3PNVWWK3TUHMYTKNRSGIZTQOI>.
You are receiving this because you were mentioned.
|
Beta Was this translation helpful? Give feedback.
-
|
@sarkaria |
Beta Was this translation helpful? Give feedback.
@sarkaria
It’s difficult to pinpoint exactly what’s going wrong, but I’ll share some pointers that might help. 🙂
Process isolation: The GUI runs in its own private process. It also starts the server and booter, which each run in separate processes. Your bot likewise runs in its own process. Because of this, it’s unlikely that the GUI or server are directly affected by your bot—unless there’s an unexpected bug.
Resource usage: The reinforcement process may consume significant system resources (CPU and memory). This can indirectly impact the performance of the server and GUI since they share the same operating system. I recommend opening Activity Monitor and checking the Java processes. You…