Showing the changes to assignment-client/src/scripts/EntityScriptServer.h (1 of 5 files). Show all
Unified · Split
| @@ -20,6 +20,9 @@ · 19 unmodified lines | ||
| 20 | 20 | #include <ScriptEngine.h> |
| 21 | 21 | #include <ThreadedAssignment.h> |
| 22 | 22 | |
| 23 | +static const int DEFAULT_MAX_ENTITY_PPS = 9000; | |
| 24 | +static const int DEFAULT_ENTITY_PPS_PER_SCRIPT = 900; | |
| 25 | + | |
| 23 | 26 | class EntityScriptServer : public ThreadedAssignment { |
| 24 | 27 | Q_OBJECT |
| 25 | 28 | |
| @@ -42,6 +45,9 @@ private slots: · 16 unmodified lines | ||
| 42 | 45 | void handleReloadEntityServerScriptPacket(QSharedPointer<ReceivedMessage> message, SharedNodePointer senderNode); |
| 43 | 46 | void handleEntityScriptGetStatusPacket(QSharedPointer<ReceivedMessage> message, SharedNodePointer senderNode); |
| 44 | 47 | |
| 48 | + void handleSettings(); | |
| 49 | + void updateEntityPPS(); | |
| 50 | + | |
| 45 | 51 | private: |
| 46 | 52 | void negotiateAudioFormat(); |
| 47 | 53 | void selectAudioFormat(const QString& selectedCodecName); |
| @@ -62,6 +68,9 @@ private: · 14 unmodified lines | ||
| 62 | 68 | EntityEditPacketSender _entityEditSender; |
| 63 | 69 | EntityTreeHeadlessViewer _entityViewer; |
| 64 | 70 | |
| 71 | + int _maxEntityPPS { DEFAULT_MAX_ENTITY_PPS }; | |
| 72 | + int _entityPPSPerScript { DEFAULT_ENTITY_PPS_PER_SCRIPT }; | |
| 73 | + | |
| 65 | 74 | QString _selectedCodecName; |
| 66 | 75 | CodecPluginPointer _codec; |
| 67 | 76 | Encoder* _encoder { nullptr }; |