diff options
| -rw-r--r-- | src/bones.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/bones.cpp b/src/bones.cpp index bba61b9..88aa429 100644 --- a/src/bones.cpp +++ b/src/bones.cpp | |||
| @@ -214,7 +214,9 @@ bool bones_update(int idx, void *ent) { | |||
| 214 | 214 | ||
| 215 | BoneEntry *e = find_entry(idx); | 215 | BoneEntry *e = find_entry(idx); |
| 216 | double now = bone_now(); | 216 | double now = bone_now(); |
| 217 | if (e && e->ent == ent && e->valid && now - e->stamp < 0.03) | 217 | // Refresh every frame; the renderer's bone cache makes this a cheap memcpy |
| 218 | // for visible entities. A 30 Hz cache made the head marker visibly lag. | ||
| 219 | if (e && e->ent == ent && e->valid && now - e->stamp < 0.001) | ||
| 218 | return true; | 220 | return true; |
| 219 | if (!e) | 221 | if (!e) |
| 220 | e = alloc_entry(idx, ent); | 222 | e = alloc_entry(idx, ent); |
