mirror of
https://github.com/HifiExperiments/overte.git
synced 2025-08-09 17:38:34 +02:00
don't use static packets in AvatarMixer
This commit is contained in:
parent
3b12d841de
commit
7fab3ea269
1 changed files with 2 additions and 2 deletions
|
@ -58,8 +58,8 @@ void attachAvatarDataToNode(Node* newNode) {
|
||||||
// determine which avatars are included in the packet stream
|
// determine which avatars are included in the packet stream
|
||||||
// 4) we should optimize the avatar data format to be more compact (100 bytes is pretty wasteful).
|
// 4) we should optimize the avatar data format to be more compact (100 bytes is pretty wasteful).
|
||||||
void broadcastAvatarData() {
|
void broadcastAvatarData() {
|
||||||
static unsigned char broadcastPacketBuffer[MAX_PACKET_SIZE];
|
unsigned char broadcastPacketBuffer[MAX_PACKET_SIZE];
|
||||||
static unsigned char avatarDataBuffer[MAX_PACKET_SIZE];
|
unsigned char avatarDataBuffer[MAX_PACKET_SIZE];
|
||||||
unsigned char* broadcastPacket = (unsigned char*)&broadcastPacketBuffer[0];
|
unsigned char* broadcastPacket = (unsigned char*)&broadcastPacketBuffer[0];
|
||||||
int numHeaderBytes = populateTypeAndVersion(broadcastPacket, PACKET_TYPE_BULK_AVATAR_DATA);
|
int numHeaderBytes = populateTypeAndVersion(broadcastPacket, PACKET_TYPE_BULK_AVATAR_DATA);
|
||||||
unsigned char* currentBufferPosition = broadcastPacket + numHeaderBytes;
|
unsigned char* currentBufferPosition = broadcastPacket + numHeaderBytes;
|
||||||
|
|
Loading…
Reference in a new issue