Fix Sky Mower tumbling and the hitches on a big farm
- Mowbot keeps its heading apart from the drawn pose: a flyer's lean and sway were fed back each frame and rolled it over. - Drone pads looked through every loose bundle, testing every belt end, for each idle drone every frame (43 ms on a 1500-bundle farm): distance first, and a 1.5 s pause after finding nothing. - Saves are written, laid out and compressed off the main thread; backups go in the same queue (an autosave froze the game ~50 ms every 30 s). - Robots tick on staggered frames. - -demoperf N profiles save slot N; -demobots logs the Sky Mower's tilt. On the player's save: frames over 25 ms went from 144 to 0 in 40 s, worst frame 74 ms -> 22 ms. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@ -46,7 +46,7 @@ namespace GrassCutter
|
||||
yield return new WaitForSeconds(15f);
|
||||
Log($"t+{k * 15} s at {Mowbot.Haste:0}x: earned {Ts.Money.Value - money:0}, closed {Ts.Closed.Value}");
|
||||
Log($" robot: {robot.Prompt}");
|
||||
Log($" sky: {sky.Prompt} alt {Planet.Altitude(sky.ShownBody.position) - Planet.Altitude(sky.Shown):0.0} m");
|
||||
Log($" sky: {sky.Prompt} alt {Planet.Altitude(sky.ShownBody.position) - Planet.Altitude(sky.Shown):0.0} m, tilt {Vector3.Angle(sky.ShownBody.up, Planet.Up(sky.Shown)):0} deg");
|
||||
Log($" pad: {pad.Prompt}, delivered {pad.Delivered}");
|
||||
}
|
||||
skyUp = Planet.Up(sky.Shown);
|
||||
|
||||
Reference in New Issue
Block a user