[GH-ISSUE #2276] Death camera shake is looped infinitely #623

Closed
opened 2026-11-02 15:40:36 +07:00 by bsakaguchi · 3 comments
Owner

Originally created by @ludovic111 on GitHub (Oct 26, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2276

What I did: opened a world, died from zombies
What happened: on the death screen camera shake is looped infinitely
What I expected: static camera like in vanilla
Horizon version: c048292f
OS, CPU, GPU: Windows 11, Ryzen 3700x, RX 7600

Reported on Discord by andrij in #horizon-bugs · Discord thread
Tags: rendering, gameplay

Attachments (Discord links expire after a while; the thread keeps them)

Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.

Originally created by @ludovic111 on GitHub (Oct 26, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/2276 > What I did: opened a world, died from zombies > What happened: on the death screen camera shake is looped infinitely > What I expected: static camera like in vanilla > Horizon version: c048292f > OS, CPU, GPU: Windows 11, Ryzen 3700x, RX 7600 Reported on Discord by **andrij** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1564293839282503760) Tags: rendering, gameplay **Attachments** (Discord links expire after a while; the thread keeps them) - [Recording_2026-10-26_160452.mp4](https://cdn.discordapp.com/attachments/1564293839282503760/1564293841358692466/Recording_2026-10-26_160452.mp4?ex=6ae0bdaa&is=6adf6c2a&hm=3ece7e74a5081ac3add8b8042c7b4fca2bf30c05349ca70db8ed3f93584395b4&) <sub>Opened by Kira from Discord. Replies from the reporter in the thread are added here as comments.</sub><!-- kira -->
bsakaguchi 2026-11-02 15:40:36 +07:00
Author
Owner

@ludovic111 commented on GitHub (Oct 26, 2026):

andrij added on Discord:

I searched on github issues and didn't found i t so

<!-- gh-comment-id:6419671051 --> @ludovic111 commented on GitHub (Oct 26, 2026): **andrij** added on Discord: > I searched on github issues and didn't found i t so <!-- kira -->
Author
Owner

@kacpherek commented on GitHub (Oct 26, 2026):

Reproduced on current main and fixed in #2279. #1978 already fixed the death roll itself; the shake left was the hurt tilt from the killing hit, which was never counted down while dead on the server thread, so it restarted every frame. With #2279 it fades out within half a second and the death roll goes on as in vanilla.

<!-- gh-comment-id:6419772562 --> @kacpherek commented on GitHub (Oct 26, 2026): Reproduced on current main and fixed in #2279. #1978 already fixed the death roll itself; the shake left was the hurt tilt from the killing hit, which was never counted down while dead on the server thread, so it restarted every frame. With #2279 it fades out within half a second and the death roll goes on as in vanilla.
Author
Owner

@levzzz5154 commented on GitHub (Oct 27, 2026):

🤖 Agent: verified on the current main that the death screen's camera is static now, so this stays fixed. The endless shake was the hurt tilt: the window's player counts its hurt tilt down in controlled_simulation_tick, which is skipped while the player is dead, so the killing hit's tilt of 10 was never counted down and every frame drew the start of the tilt with a new partial tick. #2279 makes the hurt clock advance on those ticks, as LivingEntity.baseTick does for every living entity.

The live check (a build of the current main, single player on the server thread, horizon-ctl state after /damage @s 1000):

t=1  screen=dead  hurt_time=0  death_time=21
t=2  screen=dead  hurt_time=0  death_time=42
t=3  screen=dead  hurt_time=0  death_time=63

The hurt tilt is 0 from the first frame on, and the death time is past the 20 ticks that GameRenderer.bobHurt's death roll (40.0F - 8000.0F / (duration + 200.0F), duration capped at 20) and Camera.modifyFovBasedOnDeathOrFluid's field of view cap at, so the camera is at vanilla's fixed roll of 3.636 degrees and does not move.

Vanilla classes and methods: net.minecraft.client.renderer.GameRenderer#bobHurt, net.minecraft.client.Camera#modifyFovBasedOnDeathOrFluid, net.minecraft.world.entity.LivingEntity#baseTick (if (this.hurtTime > 0) --this.hurtTime;).

<!-- gh-comment-id:6442177424 --> @levzzz5154 commented on GitHub (Oct 27, 2026): 🤖 Agent: verified on the current `main` that the death screen's camera is static now, so this stays fixed. The endless shake was the hurt tilt: the window's player counts its hurt tilt down in `controlled_simulation_tick`, which is skipped while the player is dead, so the killing hit's tilt of 10 was never counted down and every frame drew the start of the tilt with a new partial tick. #2279 makes the hurt clock advance on those ticks, as `LivingEntity.baseTick` does for every living entity. The live check (a build of the current `main`, single player on the server thread, `horizon-ctl state` after `/damage @s 1000`): ``` t=1 screen=dead hurt_time=0 death_time=21 t=2 screen=dead hurt_time=0 death_time=42 t=3 screen=dead hurt_time=0 death_time=63 ``` The hurt tilt is 0 from the first frame on, and the death time is past the 20 ticks that `GameRenderer.bobHurt`'s death roll (`40.0F - 8000.0F / (duration + 200.0F)`, duration capped at 20) and `Camera.modifyFovBasedOnDeathOrFluid`'s field of view cap at, so the camera is at vanilla's fixed roll of 3.636 degrees and does not move. Vanilla classes and methods: `net.minecraft.client.renderer.GameRenderer#bobHurt`, `net.minecraft.client.Camera#modifyFovBasedOnDeathOrFluid`, `net.minecraft.world.entity.LivingEntity#baseTick` (`if (this.hurtTime > 0) --this.hurtTime;`).
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
horizon-rust/horizon#623
No description provided.