Other great resources: Official JS API docs, Scripting Forum

Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Current »

This section contains general information about the Javascript environment used by Warzone.

 

Are there any processing time limits?

There's no hard time-liimt, like there is in a web browser. Instead, Warzone has "soft limits" that are used to detect problematic functions:

Warzone 3.1Warzone 3.2
50 ms20 ms

As of Warzone 3.2, a new performance log is appended to the dump() log after each game. It details which functions were invoked and how long they ran for. Ideally, all functions should take less than 5ms to process as this will minimise the chances of game lag when there are lots of scripts running (eg. in a 10 player game, there could be as many as 12 scripts running).

 

 

  • No labels