• Tracker

    Spaces
    Browse
    Statistics
  • /
  • /Stable Feedback
  • /DZG-2897
Back
1

Server hitch: animal herd re-placement

1

State

Open
Issue key
DZG-2897
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
saddywagon
Created
Nov 20, 2026
Views
3
Platform
PC Steam
What happened?

When an animal group switches between awake and dormant, the server re-places each member. For each one it tries up to 50 random navmesh points and runs a synchronous FindPath from every candidate to every other member, all on the main thread in a single frame. If a member has strayed far from its group, every path to it fails, so every try fails and the server can freeze for 80–100 ms. In my case a red deer herd had two members together and a third 2,206m away, and every path check to that third deer failed. A player near the 1000m wake distance repeats this every few seconds.

suggestions : drop or ignore stragglers past a set distance, check paths against one anchor member instead of all of them, add hysteresis between waking and sleeping, and skip re-placement when the group goes dormant.

Reproduction steps

Confirmed reproducible: on a server with one player, I teleported one red deer about 3 km from its herd (2 others). The deer stays a member of the group and keeps moving in step with the herd at that offset. Every time the player crosses the 1000 m wake distance, the group re-placement runs, every path check to the distant member fails, and all 150 placement attempts fail. Each wake or dormant switch costs one long server frame (50–100 ms observed before mitigation, 4 switches in under a minute while walking back and forth).

Reproduction steps:

  1. Start a vanilla 1.30 Chernarus server with one player connected.

  2. Find a herbivore herd, for example red deer, and note its position.

  3. Separate one member from its group by about 2 km. You can teleport it with an admin tool

  4. Move the player so they ar within 1000m of the two remaining deer, then back beyond 1000m. Repeat a few times, waiting about 10 seconds each time; the group re-checks every 5 seconds.

  5. Watch server frame time with a profiler, or server FPS in the RPT or in a monitoring tool. Each wake or dormant switch causes one 50–100 ms frame. Most of that time is spent in group placement doing NavmeshPathGraphQuery path searches, one after another.

Exact build version (optional)
1.30.164289
Where did it happen?
Local / Offline
Is it modded?
Yes
Expected result

Expected: switching a group between awake and dormant takes very little server time.
Actual: each switch freezes the main thread for 50–100 ms, because every placement attempt fails on the path search to the distant member.

Section
Mod list

CF
Dabs Framework
VPP Admin
DayZ Editor Loader

Load order / launch params

-limitfps=300

Reactions

Activity

    14 minutes ago
  • saddywagon
    created issue14 minutes ago

You are not signed in. Please sign in to see more details and to reply.

State

Open
Issue key
DZG-2897
Access
Public
Space
DayZ
Project
Stable Feedback
Creator
saddywagon
Created
Nov 20, 2026
Views
3