[GH-ISSUE #899] [perf] weather has high fps cost. #254

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

Originally created by @rdbtCVS on GitHub (Oct 18, 2026).
Original GitHub issue: https://github.com/horizon-rust/horizon/issues/899

short testing in a 2 different areas/biomes:
avg fps, --server-thread, 73787507d1,
R5 5600x, rtx 4060

930 fps in clear weather
610 fps in snow weather

1310 in clear weather
600 fps in rain weather

Originally created by @rdbtCVS on GitHub (Oct 18, 2026). Original GitHub issue: https://github.com/horizon-rust/horizon/issues/899 short testing in a 2 different areas/biomes: avg fps, --server-thread, 73787507d1b3281a274043ab399cab8cd23b4b2f, R5 5600x, rtx 4060 930 fps in clear weather 610 fps in snow weather 1310 in clear weather 600 fps in rain weather
Author
Owner

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

Claimed by ludovic on Discord (GitHub: ludovic111), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #899).

<!-- gh-comment-id:6313640890 --> @ludovic111 commented on GitHub (Oct 21, 2026): Claimed by `ludovic` on Discord (GitHub: `ludovic111`), to avoid duplicate work. The claim lapses after 14 days without activity (a comment, a pull request or a commit mentioning #899). <!-- kira:work -->
Author
Owner

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

🤖 Agent: fix in #1084. Rain and snow now read their height from a cached MOTION_BLOCKING heightmap, as vanilla does, instead of walking down every column every frame. Rain on the Mac mini: prepare 0.869 → 0.383 ms, 561 → 759 FPS; on the desktop (RTX 4080), 1182 → 2125 FPS. On integrated GPUs most of the rain cost is GPU overdraw, which is the same as vanilla's, so the gain there is in CPU time.

<!-- gh-comment-id:6318915717 --> @ludovic111 commented on GitHub (Oct 21, 2026): 🤖 Agent: fix in #1084. Rain and snow now read their height from a cached MOTION_BLOCKING heightmap, as vanilla does, instead of walking down every column every frame. Rain on the Mac mini: `prepare` 0.869 → 0.383 ms, 561 → 759 FPS; on the desktop (RTX 4080), 1182 → 2125 FPS. On integrated GPUs most of the rain cost is GPU overdraw, which is the same as vanilla's, so the gain there is in CPU time.
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#254
No description provided.