Skip to content
Tambet Matiisen edited this page Nov 24, 2016 · 4 revisions

Tuning the speed

Following optimizations help to run the training process faster:

  1. Turn up the framerate: in Minecraft go to Options..., Video Settings... and set Max Framerate: Unlimited. Alternatively you can set it in MALMO_HOME/Minecraft/run/options.txt, find the line maxFps:<nr> and change it to maxFps:260. Even better - match this with your tick duration, i.e. for 5ms ticks use maxFps:200.

  2. Make sure you have offscreen rendering enabled in mission XML file (should be for default missions).

<ModSettings>
    <PrioritiseOffscreenRendering>true</PrioritiseOffscreenRendering>
</ModSettings>
  1. 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.

Clone this wiki locally