overte-HifiExperiments/libraries
Ryan Huffman 6817cf9db4 Fix entity properties sometimes being resent
When writing entity properties to a packet, we start off with a list of
requested properties (`requestedProperties`) and keep track of which properties
didn't fit (`propertiesDidntFit`) the packet, which is intialized to
requestedProperties. As we pack the properties, we remove them from
propertiesDidntFit if they didn't need to be written or were able to be
packed. At the end we store propertiesDidntFit, and use it in the future
as our requestedProperties when we try to pack more data into a packet.

The bug: because of the order in which propertiesDidntFit is
initialized, it ended up always being the list of all properties for
that entity. This typically wasn't an issue because we usually go
through and try to append all of the properties, and if we don't need to
append them (because they aren't in requestedProperties)
we remove them from our propertiesDidntFit list. When we
don't have enough remaining space in the current packet for even the
entity header, which is fairly small, we don't bother trying to append
any of the properties. When this happens, propertiesDidntFit contains
the full list of properties, which we save for the next pass through the
entity, and use as our requestedProperties, causing us to resend entity
data again. In the worst case we never end up sending all of the
entity's data.
2017-07-25 10:59:03 -07:00
..
animation Merge pull request #10881 from hyperlogic/feature/smooth-ik-chains 2017-07-14 16:59:30 -07:00
audio Fix debug builds startup crash 2017-07-19 16:18:01 -07:00
audio-client Ensure input and output device containers are protected by mutex 2017-07-18 08:58:17 -07:00
auto-updater
avatars make sure to lock data 2017-07-17 22:11:05 +01:00
avatars-renderer try again on putting result of Avatar::getJointNames in index order 2017-07-12 20:36:37 -07:00
controllers Merge branch 'master' into 21418 2017-07-01 11:19:00 +12:00
display-plugins fix debug build: stub pure virtual function 2017-07-18 15:57:00 -07:00
embedded-webserver
entities Fix entity properties sometimes being resent 2017-07-25 10:59:03 -07:00
entities-renderer vertex color support in ModelScriptingInterface 2017-07-23 08:06:26 -07:00
fbx code review 2017-07-24 19:41:30 -07:00
gl Refining the custom shader pipeline design and registration mechanism 2017-07-12 14:13:58 +02:00
gpu fix bug in getNumElements that kept it from working on buffer-views with a non-zero offset 2017-07-23 08:05:09 -07:00
gpu-gl Apply the projection and deferred transform fixes found while working on spectator camera 2017-06-28 15:44:17 +02:00
image
input-plugins
ktx Merge pull request #10689 from Atlante45/fix/ktx 2017-06-19 14:44:52 -07:00
model cleanups 2017-07-23 08:21:50 -07:00
model-networking Fixes hmd preview when resizing 2017-07-12 16:49:26 -07:00
networking Merge pull request #10947 from Atlante45/fix/ignore-ac-crash 2017-07-18 09:59:30 -07:00
octree cr feedback 2017-07-18 11:12:06 -07:00
physics supply minimum shape rather than null 2017-07-06 10:37:44 -07:00
plugins Merge branch 'spectator-camera' of https://github.com/highfidelity/hifi into dk/spectatorCameraPreview 2017-07-03 13:57:25 -07:00
procedural make ResourceManager be owned by DependencyManager 2017-06-28 14:18:14 -07:00
recording Switch to preprocessor macro for blocking invokes to capture function information 2017-06-30 11:36:24 -07:00
render fix linux compilation maybe 2017-07-13 09:30:04 +02:00
render-utils code review 2017-07-24 19:41:30 -07:00
script-engine vertex color support in ModelScriptingInterface 2017-07-23 08:06:26 -07:00
shared Merge pull request #11029 from cain-kilgore/dominant-hands 2017-07-25 08:01:31 -07:00
trackers Merge branch 'master' into 21396 2017-06-22 23:54:15 +12:00
ui made requested changes 2017-07-19 16:28:16 +01:00
ui-plugins PR feedback and cmake fixes 2017-06-16 16:59:58 -07:00