What included in cpu time?



  • As I understand, basically the process of each step is:

    1. Memory = JSON.parse(memoryData)
    2. Game = prepareGameObject
    3. invokeUserScript
    4. memoryData = JSON.stringify(Memory)
    5. applyCommands

    What exactly included in cpu time? Specifically I'm wondering if complex memory structure will result in performance penalty? Or only #3 is counted and I can do anything with Memory as long as it feets in 2MB?