mirror of
https://github.com/lubosz/overte.git
synced 2025-04-08 09:43:01 +02:00
call setProcessCallIntervalHint() in JS Agent, so the non-threaded voxel sender knows how often we plan to call it
This commit is contained in:
parent
529bcc2b4a
commit
5a356340e0
1 changed files with 3 additions and 0 deletions
|
@ -94,6 +94,9 @@ void Agent::run() {
|
|||
engine.globalObject().setProperty("TREE_SCALE", treeScaleValue);
|
||||
|
||||
const long long VISUAL_DATA_SEND_INTERVAL_USECS = (1 / 60.0f) * 1000 * 1000;
|
||||
|
||||
// let the VoxelPacketSender know how frequently we plan to call it
|
||||
voxelScripter.getVoxelPacketSender()->setProcessCallIntervalHint(VISUAL_DATA_SEND_INTERVAL_USECS);
|
||||
|
||||
QScriptValue visualSendIntervalValue = engine.newVariant((QVariant(VISUAL_DATA_SEND_INTERVAL_USECS / 1000)));
|
||||
engine.globalObject().setProperty("VISUAL_DATA_SEND_INTERVAL_MS", visualSendIntervalValue);
|
||||
|
|
Loading…
Reference in a new issue