-
Notifications
You must be signed in to change notification settings - Fork 29
Tuning
Following optimizations help to run the training process faster:
-
Turn up the framerate: in Minecraft go to
Options...
,Video Settings...
and setMax Framerate: Unlimited
. Alternatively you can set it inMALMO_HOME/Minecraft/run/options.txt
, find the linemaxFps:<nr>
and change it tomaxFps:260
. Even better - match this with your tick duration, i.e. for 5ms ticks usemaxFps:200
. -
Make sure you have offscreen rendering enabled in mission XML file (should be for default missions).
<ModSettings>
<PrioritiseOffscreenRendering>true</PrioritiseOffscreenRendering>
</ModSettings>
- You can play with
MsPerTick
parameter, which basically determines how fast you can get new observations from the game. Default is 50ms per tick, which means 20 observations per second. You can lower it to 25ms, 10ms or even 1ms.
<ModSettings>
<MsPerTick>10</MsPerTick>
</ModSettings>
But beware that the bottleneck might be your training process - can it really handle more than 20 observations per second? Otherwise you would be wasting observations and moving forward in time in bigger steps (which might actually be good thing in some contexts). Also the timeout in missions still counts each tick as 50ms, so in real life your missions time out faster.