diff options
author | Justin Clark-Casey (justincc) | 2012-03-16 00:34:30 +0000 |
---|---|---|
committer | Justin Clark-Casey (justincc) | 2012-03-19 21:31:38 +0000 |
commit | a9a77bb3ab73b96e95daafa6dccfe438439f1aef (patch) | |
tree | 0e3e7491b97a1a390e80e618bef9b18f93397bbf /OpenSim/Region/Framework/Scenes/Tests/EntityManagerTests.cs | |
parent | Remove property/field duplication in ScriptInstance where it's unnecessary. (diff) | |
download | opensim-SC_OLD-a9a77bb3ab73b96e95daafa6dccfe438439f1aef.zip opensim-SC_OLD-a9a77bb3ab73b96e95daafa6dccfe438439f1aef.tar.gz opensim-SC_OLD-a9a77bb3ab73b96e95daafa6dccfe438439f1aef.tar.bz2 opensim-SC_OLD-a9a77bb3ab73b96e95daafa6dccfe438439f1aef.tar.xz |
Replace script-lines-per-second with the script execution time scaled by its measurement period and an idealised frame time.
The previous lines-per-second measurement used for top scripts report was inaccurate, since lines executed does not reflect time taken to execute.
Also, every fetch of the report would reset all the numbers limiting its usefulness and we weren't even guaranteed to see the top 100.
The actual measurement value should be script execution time per frame but XEngine does not work this way.
Therefore, we use actual script execution time scaled by the measurement period and an idealised frame time.
This is still not ideal but gives reasonable results and allows scripts to be compared.
This commit moves script execution time calculations from SceneGraph into IScriptModule implementations.
Diffstat (limited to 'OpenSim/Region/Framework/Scenes/Tests/EntityManagerTests.cs')
0 files changed, 0 insertions, 0 deletions