mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-06-17 20:08:47 +02:00
try harder to keep setTimeout loop going in controller-dispatcher
This commit is contained in:
parent
cf3e9f78c9
commit
dba05ae8e2
1 changed files with 9 additions and 1 deletions
|
@ -154,6 +154,15 @@ Script.include("/~/system/libraries/controllerDispatcherUtils.js");
|
||||||
};
|
};
|
||||||
|
|
||||||
this.update = function () {
|
this.update = function () {
|
||||||
|
try {
|
||||||
|
this.updateInternal();
|
||||||
|
} catch (e) {
|
||||||
|
print(e);
|
||||||
|
}
|
||||||
|
Script.setTimeout(_this.update, BASIC_TIMER_INTERVAL_MS);
|
||||||
|
};
|
||||||
|
|
||||||
|
this.updateInternal = function () {
|
||||||
if (PROFILE) {
|
if (PROFILE) {
|
||||||
Script.beginProfileRange("dispatch.pre");
|
Script.beginProfileRange("dispatch.pre");
|
||||||
}
|
}
|
||||||
|
@ -376,7 +385,6 @@ Script.include("/~/system/libraries/controllerDispatcherUtils.js");
|
||||||
if (PROFILE) {
|
if (PROFILE) {
|
||||||
Script.endProfileRange("dispatch.run");
|
Script.endProfileRange("dispatch.run");
|
||||||
}
|
}
|
||||||
Script.setTimeout(_this.update, BASIC_TIMER_INTERVAL_MS);
|
|
||||||
};
|
};
|
||||||
|
|
||||||
this.setBlacklist = function() {
|
this.setBlacklist = function() {
|
||||||
|
|
Loading…
Reference in a new issue