0.4 sec per xType - can we speed it up?

{
  "Name": "test_xkey_time",
  "CreationDate": "2021-1-13",
  "Commands": [
    {
      "Command": "store",
      "Target": "fast",
      "Value": "!replayspeed"
    },
    {
      "Command": "times",
      "Target": "25",
      "Value": ""
    },
    {
      "Command": "XType",
      "Target": "${key_shift}",
      "Value": ""
    },
    {
      "Command": "end",
      "Target": "",
      "Value": ""
    },
    {
      "Command": "echo",
      "Target": "parseFloat(${!runtime})",
      "Value": ""
    }
  ]
}

Instead of using a loop, you can add all 25 ${key_shift} into one XType:

   {
      "Command": "XType",
      "Target": "${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}${key_shift}",
      "Value": ""
    },
1 Like

Haha, ok, that’s true. But I didn’t want to send 25 xtypes en bloc. The above macro is just a frame from my program and I was measuring how much time it consumes by itself, without the intended work load. I will send one xtype at the end of each loop.

Ah, so this is more about general speed improvents like here: Increase UI speed - #3 by admin ?

=> We are working on that.

1 Like

Solved, see Increase UI speed - #6 by admin

1 Like