History

Interface only sends joint data to avatar-mixer if they have changed enough since the last send

Seth Alves committed 11 years ago

Commit 76923581 parent 3d7aa6f8 files · +47 −29Browse files

Showing the changes to libraries/script-engine/src/ScriptEngine.cpp (1 of 8 files). Show all

Unified · Split

libraries/script-engine/src/ScriptEngine.cpp+1−1
@@ -599,7 +599,7 @@ void ScriptEngine::run() { · 598 unmodified lines
599 / (1000 * 1000)) + 0.5);599 / (1000 * 1000)) + 0.5);
600 const int SCRIPT_AUDIO_BUFFER_BYTES = SCRIPT_AUDIO_BUFFER_SAMPLES * sizeof(int16_t);600 const int SCRIPT_AUDIO_BUFFER_BYTES = SCRIPT_AUDIO_BUFFER_SAMPLES * sizeof(int16_t);
601 601
602 QByteArray avatarByteArray = _avatarData->toByteArray();602 QByteArray avatarByteArray = _avatarData->toByteArray(true);
603 auto avatarPacket = NLPacket::create(PacketType::AvatarData, avatarByteArray.size());603 auto avatarPacket = NLPacket::create(PacketType::AvatarData, avatarByteArray.size());
604 604
605 avatarPacket->write(avatarByteArray);605 avatarPacket->write(avatarByteArray);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t