mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 09:57:26 +02:00
Set max packet per second on the agent
This commit is contained in:
parent
b1a3b1f48b
commit
41cd0d79b2
3 changed files with 3 additions and 3 deletions
|
@ -56,6 +56,7 @@ Agent::Agent(ReceivedMessage& message) :
|
||||||
ThreadedAssignment(message),
|
ThreadedAssignment(message),
|
||||||
_receivedAudioStream(RECEIVED_AUDIO_STREAM_CAPACITY_FRAMES, RECEIVED_AUDIO_STREAM_CAPACITY_FRAMES)
|
_receivedAudioStream(RECEIVED_AUDIO_STREAM_CAPACITY_FRAMES, RECEIVED_AUDIO_STREAM_CAPACITY_FRAMES)
|
||||||
{
|
{
|
||||||
|
_entityEditSender.setPacketsPerSecond(DEFAULT_ENTITY_PPS_PER_SCRIPT);
|
||||||
DependencyManager::get<EntityScriptingInterface>()->setPacketSender(&_entityEditSender);
|
DependencyManager::get<EntityScriptingInterface>()->setPacketSender(&_entityEditSender);
|
||||||
|
|
||||||
ResourceManager::init();
|
ResourceManager::init();
|
||||||
|
|
|
@ -24,9 +24,6 @@
|
||||||
#include <ScriptEngine.h>
|
#include <ScriptEngine.h>
|
||||||
#include <ThreadedAssignment.h>
|
#include <ThreadedAssignment.h>
|
||||||
|
|
||||||
static const int DEFAULT_MAX_ENTITY_PPS = 9000;
|
|
||||||
static const int DEFAULT_ENTITY_PPS_PER_SCRIPT = 900;
|
|
||||||
|
|
||||||
class EntityScriptServer : public ThreadedAssignment {
|
class EntityScriptServer : public ThreadedAssignment {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
|
|
@ -48,6 +48,8 @@ class QScriptEngineDebugger;
|
||||||
static const QString NO_SCRIPT("");
|
static const QString NO_SCRIPT("");
|
||||||
|
|
||||||
static const int SCRIPT_FPS = 60;
|
static const int SCRIPT_FPS = 60;
|
||||||
|
static const int DEFAULT_MAX_ENTITY_PPS = 9000;
|
||||||
|
static const int DEFAULT_ENTITY_PPS_PER_SCRIPT = 900;
|
||||||
|
|
||||||
class CallbackData {
|
class CallbackData {
|
||||||
public:
|
public:
|
||||||
|
|
Loading…
Reference in a new issue