[GH-ISSUE #1881] Death Screen Tilt Glitch (macOS) #562

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

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

What I did: Died
What happened: Death Screen showed with weird tilt glitch.
What I expected: Normal Death Screen
Horizon version: release or commit 0.2.57
OS, CPU, GPU: macOS, Apple M2 (CPU and GPU)

Reported on Discord by Potato 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 25, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/1881 > What I did: Died > What happened: Death Screen showed with weird tilt glitch. > What I expected: Normal Death Screen > Horizon version: release or commit 0.2.57 > OS, CPU, GPU: macOS, Apple M2 (CPU and GPU) Reported on Discord by **Potato** in #horizon-bugs · [Discord thread](https://discord.com/channels/1559227979002028052/1563968936880382145) Tags: rendering, gameplay **Attachments** (Discord links expire after a while; the thread keeps them) - [weird_death_screen_glitch.mov](https://cdn.discordapp.com/attachments/1563968936880382145/1563968938034077786/weird_death_screen_glitch.mov?ex=6adf8f13&is=6ade3d93&hm=470eb9d6c62264664486ec116e1897810bf861f1b8b190b0565c7c5536163a5d&) <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:04 +07:00
Author
Owner

@isaaclins commented on GitHub (Oct 25, 2026):

+1

<!-- gh-comment-id:6400905668 --> @isaaclins commented on GitHub (Oct 25, 2026): +1
Author
Owner

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

Potato added on Discord:

v0.2.70 still has that glitchy death screen

<!-- gh-comment-id:6417548589 --> @ludovic111 commented on GitHub (Oct 26, 2026): **Potato** added on Discord: > v0.2.70 still has that glitchy death screen <!-- kira -->
Author
Owner

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

🤖 Agent: Reopened. #1978 (in 0.2.70) made the death roll count in ticks, but the reporter still sees the glitch in 0.2.70. Their original video shows the view wobbling on the death screen instead of settling at vanilla's fixed roll. A clip from 0.2.70 has been requested in the Discord thread.

<!-- gh-comment-id:6418254394 --> @ludovic111 commented on GitHub (Oct 26, 2026): 🤖 Agent: Reopened. #1978 (in 0.2.70) made the death roll count in ticks, but the reporter still sees the glitch in 0.2.70. Their original video shows the view wobbling on the death screen instead of settling at vanilla's fixed roll. A clip from 0.2.70 has been requested in the Discord thread.
Author
Owner

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

Potato added on Discord:

In single player, and an placeholder name bug is there too, on v0.2.70

<!-- gh-comment-id:6418345947 --> @ludovic111 commented on GitHub (Oct 26, 2026): **Potato** added on Discord: > In single player, and an placeholder name bug is there too, on v0.2.70 - [still_bugged.mov](https://cdn.discordapp.com/attachments/1563968936880382145/1564282068760920176/still_bugged.mov?ex=6ae0b2b4&is=6adf6134&hm=8ec6337a3c21aca46097fa478847db00cc5bde3d0d08d62d92777b96eb61161d&) <!-- kira -->
Author
Owner

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

Potato added on Discord:

its STILL bugged in v0.2.71 (Or is it still not merged?)

<!-- gh-comment-id:6418758505 --> @ludovic111 commented on GitHub (Oct 26, 2026): **Potato** added on Discord: > its STILL bugged in v0.2.71 (Or is it still not merged?) - [Screen_Recording_2026-10-26_at_16.35.49.mov](https://cdn.discordapp.com/attachments/1563968936880382145/1564286787239809145/Screen_Recording_2026-10-26_at_16.35.49.mov?ex=6ae0b719&is=6adf6599&hm=1a120d4789240f948e9efc82aea9ca2a78aa6b419e214a2d03676653390e39ca&) <!-- kira -->
Author
Owner

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

The tilt that is still there on the server thread after #1978 is the hurt tilt never counting down once the player is dead. That is fixed by #2279 (still open), which also covers #2276.

<!-- gh-comment-id:6422593798 --> @kacpherek commented on GitHub (Oct 26, 2026): The tilt that is still there on the server thread after #1978 is the hurt tilt never counting down once the player is dead. That is fixed by #2279 (still open), which also covers #2276.
Author
Owner

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

🤖 Agent: I checked the death screen's tilt on the current main and it is settled now. The wobble in the reporter's videos is gone, and what was left after #1978 is fixed by #2279, which landed after v0.2.71 (the version in the last video).

What vanilla does. The death screen's tilt is two things in the camera, both driven by the player's death time:

  • GameRenderer.bobHurt: while the entity is dead or dying, float duration = Math.min(cameraState.entityRenderState.deathTime, 20.0F); poseStack.rotateDegrees(Axis.ZP, 40.0F - 8000.0F / (duration + 200.0F)); - the camera rolls over as the death time rises and stops at 20 ticks, at 40 - 8000/220 = 3.636 degrees.
  • Camera.modifyFovBasedOnDeathOrFluid: float duration = Math.min(cameraEntity.deathTime + partialTicks, 20.0F); fov /= (1.0F - 500.0F / (duration + 500.0F)) * 2.0F + 1.0F; - the field of view narrows and stops at the same 20 ticks.
  • The shake from the killing hit is separate: it is hurtTime, and LivingEntity.baseTick counts it down every tick (if (this.hurtTime > 0) --this.hurtTime;), dead or riding.

Horizon. crates/horizon-client/src/camera.rs has both formulas as they are in vanilla: bob_hurt rotates by 40.0 - 8000.0 / (duration + 200.0) with duration = min(death_time, 20.0), and the field of view divides by (1.0 - 500.0 / (duration + 500.0)) * 2.0 + 1.0. The death time comes from game/fov.rs's death_time(), the player's own counter.

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
...
t=12 screen=dead  hurt_time=0  death_time=252

The hurt tilt is 0 from the first frame on (that is #2279: the window's player counted its hurt tilt down in controlled_simulation_tick, which is skipped while the player is dead, so the tilt never faded and the view shook forever), and the death time is already past the 20 ticks that the roll and the field of view cap at, so both have settled at vanilla's fixed values.

Vanilla classes and methods: net.minecraft.client.renderer.GameRenderer#bobHurt, net.minecraft.client.Camera#modifyFovBasedOnDeathOrFluid, net.minecraft.client.Camera#extractRenderState (the hurtTime and deathTime it takes from the entity), net.minecraft.world.entity.LivingEntity#baseTick (the hurt clock), net.minecraft.world.entity.LivingEntity#tickDeath.

I cannot close this issue (no permission on the upstream repository), so I leave it open for a maintainer.

<!-- gh-comment-id:6442176615 --> @levzzz5154 commented on GitHub (Oct 27, 2026): 🤖 Agent: I checked the death screen's tilt on the current `main` and it is settled now. The wobble in the reporter's videos is gone, and what was left after #1978 is fixed by #2279, which landed after v0.2.71 (the version in the last video). **What vanilla does.** The death screen's tilt is two things in the camera, both driven by the player's death time: - `GameRenderer.bobHurt`: while the entity is dead or dying, `float duration = Math.min(cameraState.entityRenderState.deathTime, 20.0F); poseStack.rotateDegrees(Axis.ZP, 40.0F - 8000.0F / (duration + 200.0F));` - the camera rolls over as the death time rises and stops at 20 ticks, at 40 - 8000/220 = 3.636 degrees. - `Camera.modifyFovBasedOnDeathOrFluid`: `float duration = Math.min(cameraEntity.deathTime + partialTicks, 20.0F); fov /= (1.0F - 500.0F / (duration + 500.0F)) * 2.0F + 1.0F;` - the field of view narrows and stops at the same 20 ticks. - The shake from the killing hit is separate: it is `hurtTime`, and `LivingEntity.baseTick` counts it down every tick (`if (this.hurtTime > 0) --this.hurtTime;`), dead or riding. **Horizon.** `crates/horizon-client/src/camera.rs` has both formulas as they are in vanilla: `bob_hurt` rotates by `40.0 - 8000.0 / (duration + 200.0)` with `duration = min(death_time, 20.0)`, and the field of view divides by `(1.0 - 500.0 / (duration + 500.0)) * 2.0 + 1.0`. The death time comes from `game/fov.rs`'s `death_time()`, the player's own counter. **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 ... t=12 screen=dead hurt_time=0 death_time=252 ``` The hurt tilt is 0 from the first frame on (that is #2279: the window's player counted its hurt tilt down in `controlled_simulation_tick`, which is skipped while the player is dead, so the tilt never faded and the view shook forever), and the death time is already past the 20 ticks that the roll and the field of view cap at, so both have settled at vanilla's fixed values. Vanilla classes and methods: `net.minecraft.client.renderer.GameRenderer#bobHurt`, `net.minecraft.client.Camera#modifyFovBasedOnDeathOrFluid`, `net.minecraft.client.Camera#extractRenderState` (the `hurtTime` and `deathTime` it takes from the entity), `net.minecraft.world.entity.LivingEntity#baseTick` (the hurt clock), `net.minecraft.world.entity.LivingEntity#tickDeath`. I cannot close this issue (no permission on the upstream repository), so I leave it open for a maintainer.
Author
Owner

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

🤖 Agent: The hurt/death camera tilt was reworked after v0.2.57 — PR #2128 (remote hurt tilt) and PR #2261 (death and hurt effects) both landed Oct 27, and #2261 specifically covers the death screen presentation. Could you retest on the current release? If the tilt still glitches on macOS that's a remaining defect worth a fresh clip.

<!-- gh-comment-id:6443179867 --> @socksprox commented on GitHub (Oct 27, 2026): 🤖 Agent: The hurt/death camera tilt was reworked after v0.2.57 — PR #2128 (remote hurt tilt) and PR #2261 (death and hurt effects) both landed Oct 27, and #2261 specifically covers the death screen presentation. Could you retest on the current release? If the tilt still glitches on macOS that's a remaining defect worth a fresh clip.
Author
Owner

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

Potato added on Discord:

[F​IXED] Death Screen Tilt Glitch (macOS)

<!-- gh-comment-id:6443867425 --> @ludovic111 commented on GitHub (Oct 27, 2026): **Potato** added on Discord: > [F​IXED] Death Screen Tilt Glitch (macOS) <!-- kira -->
Author
Owner

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

Fixed by #1978 and #2279; the reporter confirmed it.

<!-- gh-comment-id:6453964288 --> @kacpherek commented on GitHub (Oct 27, 2026): Fixed by #1978 and #2279; the reporter confirmed it.
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#562
No description provided.