Ryan Huffman
34138f07bd
Merge branch 'master' of https://github.com/highfidelity/hifi into proto-received-message
2015-12-07 08:58:47 -08:00
Seth Alves
62b4eac875
fix avatar-mixer parents-related crash
2015-12-04 16:41:56 -08:00
Ryan Huffman
2a416ebc61
Merge branch 'master' of https://github.com/highfidelity/hifi into received-message
2015-11-18 16:52:23 -08:00
Anthony J. Thibault
7aefc5c9f7
AvatarMixer: remove redundant identity packet send
...
Removed AvatarClientData::checkAndSetHasReceivedFirstPackets boolean.
This is handled by the AvatarClientData::checkAndSetHasReceivedFirstPacketsFrom
set.
2015-11-16 10:14:28 -08:00
Anthony J. Thibault
245150333b
Fix for missing avatars on entry
...
This should fix the issue where a persons avatar was occasionally not visible to others
for a long period of time. This was due to several factors:
1) When a new avatar was added to the simulation that identity packet was not broadcast to
other avatars on the server. This would rely on random logic to send the identity eventually.
This is fixed in this PR, by sending identity packets to all other clients when a new clients
arrive.
2) The random identity logic was not being executed if the sequence number check caused an update
to be skipped. This means the probability of sending a random packet was reduced significantly,
especially for clients that were loading geometry on entry. This was fixed by doing the random
check before sequence number check.
3) The 1/300 probably used in the check was too low, this was only a 63% chance of sending a identity
packet within 5 seconds. This was fixed by changing the probability to 1/187, which is a 80% chance
to send an identity packet within 5 seconds.
4) The randFloat() implementation slightly reduced the identity packet probability due to quantization errors.
This has been replaced by a C++ std random number generator.
2015-11-13 18:08:18 -08:00
Ryan Huffman
7682ab00e3
Add ReceivedMessage and receive progress
2015-10-15 14:09:53 -07:00
Stephen Birarda
593153deec
add receive rate and inbound kbps to av stats
2015-10-06 14:58:51 -07:00
Atlante45
179ee73e26
Merge branch 'master' of https://github.com/highfidelity/hifi into update_protocol
2015-08-26 16:50:33 +02:00
Stephen Birarda
6860f3d126
add readWithoutCopy for clarity in Packet read
2015-08-19 14:32:26 -07:00
Stephen Birarda
aa08bee69f
initial work to make sequence # and bitfield lead all packets
2015-07-23 11:59:37 -07:00
Stephen Birarda
0f534b9f7b
fixes for new read and NLPacketList
2015-07-17 15:43:20 -07:00
Atlante45
c6f6dbd845
Fix QByteArray from rqw data
2015-07-16 09:59:15 -07:00
Stephen Birarda
e127c5c06d
rename Packet methods for clarity
2015-07-15 10:40:40 -07:00
Atlante45
fbb6a94579
Merge branch 'receive_packets' of https://github.com/huffman/hifi into protocol
2015-07-14 16:36:28 -07:00
Stephen Birarda
fbd287472d
make NodeData parseData take only packet
2015-07-14 14:09:00 -07:00
Atlante45
c80df94b06
Update includes for moved files
2015-07-13 15:28:55 -07:00
Stephen Birarda
26be492475
use same listener for many packets in AudioMixer
2015-07-13 14:46:56 -07:00
Stephen Birarda
fe011e6752
keep track of out of order sends in AM
2015-05-07 14:13:27 -07:00
Stephen Birarda
b3f7ec1545
keep track of starves and skips on other avatars
2015-05-06 16:49:51 -07:00
Stephen Birarda
460abd85b9
don't double send data to a receiver
2015-05-06 11:35:45 -07:00
Stephen Birarda
532bcc9376
complete initial algorithm for AM throttle
2015-05-01 14:56:40 -07:00
Stephen Birarda
67efa7796f
use only AD rate for FRD adjustment
2015-05-01 10:38:32 -07:00
Stephen Birarda
94739cf8d3
move number constants out of SharedUtil to NumericalConstants
2015-05-01 10:26:53 -07:00
Stephen Birarda
5b55a52a04
add check in AvatarMixer for next adjustment
2015-04-30 15:36:31 -07:00
Stephen Birarda
17142a532f
add stats for max FRD and num avatars last frame
2015-04-30 10:09:23 -07:00
Stephen Birarda
2c0604afd1
fix string JSON unmarshal, add basic avatar values
2015-04-30 08:55:08 -07:00
Stephen Birarda
d5d52f804f
add a networking library and link from appropriate targets
2014-04-10 09:32:17 -07:00
Stephen Birarda
684c6b5372
run regex header replacement on all cpp files
2014-04-09 09:35:42 -07:00
Stephen Birarda
786d9ce404
force sending of identity and billboard packets changed in last frame
2014-03-25 10:56:06 -07:00
Stephen Birarda
e6b83ac52d
send mesh and billboard on receiver's first connect
2014-03-25 10:34:38 -07:00
Stephen Birarda
e8b9594758
spread out billboard and identity fallbacks
2014-03-25 09:39:43 -07:00
Andrew Meadows
272cb879f8
change wording of comment
2014-03-18 09:38:49 -07:00
Andrew Meadows
ed3cf36045
cleanup: AvatarData doesn't derive from NodeData
...
Cleaner Interface since the AvatarData is already not the NodeList.
Reduces overhead/confusing code when parsing packets from AvatarMixer.
2014-03-17 14:10:42 -07:00
Andrzej Kapolka
10ce2cb3f0
Working on sending the billboards over the network.
2014-02-21 11:49:29 -08:00
Stephen Birarda
2b80a5fbb8
move face/skeleton model URLs to AvatarData
2014-02-04 14:40:41 -08:00
Stephen Birarda
26c961dc66
send identity packets when changes occur between keyframes
2014-02-04 14:24:13 -08:00
Stephen Birarda
33305ad111
have the avatar-mixer broadcast identity packets every 5 seconds
2014-02-04 13:42:22 -08:00
Stephen Birarda
31bd5f7ce8
add parsing of PacketTypeAvatarIdentity to AvatarMixer
2014-02-04 13:27:05 -08:00