mirror of
https://github.com/horizon-rust/horizon-mods.git
synced 2026-12-03 19:02:42 +07:00
[PR #63] [MERGED] SMP: the audit log syncs only after a tick that wrote to it (-2.8 ms MSPT) #72
Closed
opened 2026-11-03 04:03:00 +07:00 by bsakaguchi
·
0 comments
No Branch/Tag specified
main
submit/inferium_lab-0.1.0
submit/aurora-5.9.3
submit/zoomify-1.1.0
submit/dynamiclights-1.0.0
submit/modmenu-1.1.0
submit/smoothswapping-1.1.0
submit/chunky-1.0.1
edit/blood_particles-1794175863
submit/tweakeroo-0.30.2-horizon.1
submit/meridian-0.1.0
submit/cinematic_interactions-0.12.1
submit/vivid_horizon-1.0.0
submit/atlas-0.2.0
submit/daybreak-0.2.0
submit/meteor_horizon-0.1.3
submit/worldmap-0.7.1
submit/worldmap-0.7.0
submit/ambience-0.1.2
submit/meteor_horizon-0.1.2
submit/astral_cruiser-0.2.0
submit/roughlyenoughitems-1.0.1
submit/jei-0.2.1
submit/roughlyenoughitems-1.0.0
submit/horizonmatica-0.3.2
submit/deepbore_quarry_native-0.1.2
submit/big_nukes_native-0.1.3
submit/wayfarer_stones_native-0.6.3
submit/horizonmatica-0.3.1
submit/justenoughitems-1.0.0
submit/mousetweaks-1.0.1
submit/clientsort-1.1.0
submit/trails-1.0.0
submit/context_tools-1.3.0
submit/hostilenetworks-7.0.1
submit/ironfurnaces-4.4.3
submit/elevatorid-1.16.7
submit/jade-26.3.8
submit/ae2-15.4.17
submit/horizonmatica-0.3.0
submit/volexstorm-2.0.1
submit/better_ping_display-0.1.0
submit/screenshot_clipboard-0.1.0
submit/freecam-0.1.1
submit/ai_chat-1.0.0
submit/fence_perch-1.0.0
submit/horizon_physics-0.20.5
submit/e4mc-0.1.0
submit/worldedit_horizon-0.6.2
submit/strangely_charming-0.2.11
submit/durability_tooltip-0.2.0
submit/horizon_essentials-0.2.1
submit/mobs_see_far-1.0.0
submit/strangely_charming-0.2.10
submit/ambience-0.1.0
submit/livingmotion-1.2.0
submit/vibe_physics-1.0.0
submit/zombies_are_running-1.1.0
submit/jei-0.2.0
submit/clh_rust-0.1.1
submit/structures-0.6.0
submit/sunset-1.0.0
submit/clh_rust-0.1.0
submit/big_nukes_native-0.1.2
agent/native-build
submit/deepbore_quarry_native-0.1.1
submit/wayfarer_stones_native-0.6.2
submit/big_nukes_native-0.1.1
submit/cinematic_interactions-0.12.0
submit/chat_animation-0.1.1
submit/connected_textures-0.1.5
submit/ayynoxs_map_pack-0.4.3
submit/big_nukes-0.1.0
submit/big_nukes_native-0.1.0
submit/players_info-1.0.0
submit/karak_house-0.2.0
submit/more_chat_history-0.1.1
submit/notenoughanimations-0.2.73
submit/rzero-0.1.1
submit/notenoughanimations-0.2.72
submit/atlas-0.1.0
submit/notenoughanimations-0.2.71
submit/more_chat_history-0.1.0
submit/abelha_skull-26.3.1
submit/mod_menu-0.3.4
submit/viahorizon-0.8.7-dev
submit/rzero-0.1.0
submit/lyricsplus-3.0.0
submit/worldmap-0.5.0
submit/photonic-1.1
submit/photonic-1.0.0
submit/holdmyitems-5.1.1
submit/ae2-15.4.13
submit/create-0.8.0-alpha.16
submit/chatgpt_blocks-1.0.2-neoforge-1.26.3
submit/chatgpt_blocks-1.0.2-neoforge-1.21.1
submit/horizon_essentials-0.2.0
submit/camerautils-1.1.1
submit/abelha_skull-26.3
submit/worldedit_horizon-0.6.0
submit/liasmediaplayer-4.0.0
edit/wisdom_horizon_lite-1793893651
submit/my_moda-1.0.0
submit/my_mod-1.0.0
edit/eatinganimation-1793889782
edit/customhud-1793885645
submit/one_shot_gun-0.1.0
submit/jade_ae2-15.4.12
submit/ae2_jei-1.2.1
submit/ae2-15.4.12
submit/server_browser-2.2.0
submit/ayynoxs_map_pack-0.4.1
submit/orbital-0.5.9
m3/revert-radiant
submit/unlimited_stacks_mod-1.2.7
submit/sodium_horizon-0.4.0
submit/shield_fixes-1.0.0
submit/chop-1.0.0
submit/speedrun_timer-1.0.0
deploy/r6-mods
submit/elytratrails-0.1.0
t3/remove-economy-sell-limits
submit/unlimited_stacks_mod-1.2.6
smp/remove-gameplay-limits
submit/musicpicker-0.1.0
submit/unlimited_stacks_mod-1.2.5
submit/crossversion-0.7.0
submit/horizon_voice-0.3.3
submit/tectonic_horizon-0.3.1
submit/crossversion-0.4.0
submit/horizon_voice-0.3.2
submit/simple_hud-0.1.0
submit/horizon_voice-0.3.1
submit/horizon_voice-0.3.0
feat/smp-casino-roulette
submit/redescreen_voice-0.4.0-beta.1
submit/low_fire-1.0.0
submit/crystal_optimizer-1.0.0
submit/horizon_ascension-0.1.0
submit/freecam-1.1.0
submit/pink_enhanced_vanilla-1.0.0
submit/server_pack_fixer-1.0.0
submit/dynamic_lights-1.0.0
submit/menu-panorama-1.0.0
submit/continuity_rust-1.0.0
submit/mouse_tweaks-1.0.0
submit/freecam-1.0.0
submit/proximity_voice-0.4.1
owner-updates
registry/releases-indexer
feat/smp-coinflip
feat/smp-trade
submit/russian_localization-1.0.0
submit/appleskin-0.1.0
submit/pixelmon-0.1.0
submit/simple_coords-0.1.0
feat/native-official-mods
submit/waypoints-0.1.0
blood_particles-1.2.0
rider_hud-0.1.0
nimbe-1.0.0
smoothie_capes-0.5.1
freecam_yannis-1.0.1
netherstarrecipe-1.0.0
minelights-2.4.0
right_click_crops-1.0.1
voltz_core-0.3.0
cpm-0.1.2
projecte_core-0.1.0
projecte-0.1.0
voltz-0.3.0
schematics-1.0.0
waymap-0.2.1
worldmap-0.6.0
spotify_hud-1.0.0
seedcrackerx-0.2.3
hud_plus-4
ayynoxs_map_pack-0.4.2
fast_trading-1.0.0
pvp_music-1.2.0
orbital-0.5.10
ae2-15.4.14
movement_status-0.1.0
lumen-2.1.0
chat_heads_rust-1.0.2
pastel_mystic-1.0.0
lumina-1.0.0
skins_3d-1.1.0
waypoints-1.1.0
customhud-1.7.0
eatinganimation-0.2.0
wayfarer_stones-0.6.1
flair-1.0.1
freecam_plus-1.0.1
wayfarer_stones_native-0.6.1
elytratrails-0.1.2
native-health
appleskin-0.1.3
server_browser-2.2.1
radiant-1.0.0
montarc-1.1.1
daybreak-0.1.1
baritone-1.1.38
fly_speed-0.2.0
jade-26.3.6
viahorizon-0.8.5-dev
spider_man-0.2.0
create-0.7.0-alpha.2
horizonmatica-0.2.0
wisdom_horizon_lite-1.3.7
wisdom_horizon-1.3.7
waymap-0.2.0
deepbore_quarry-0.1.0
deepbore_quarry_native-0.1.0
dynamic_fps_for_rust-0.1.0
mod_menu-0.3.3
elytratrails-0.1.1
skins_3d-1.0.1
horizon_physics-0.18.0
speedrun_timer-1.0.1
connected_textures-0.1.2
chat_animation-0.1.0
gyro-1.4.1
wisdom_horizon_lite-1.1.0
fast_items-0.1.0
tectonic_horizon-0.3.4
wayfarer_stones-0.6.0
wayfarer_stones_native-0.6.0
wisdom_horizon-1.1.0
resourcify-0.1.1
armorhud-1.0.0
jade-26.3.5
smoothie_capes-0.2.0
invisible_frames-0.1.1
visuality_horizon-1.0.2
held_item_info-0.1.0
basic_hud-0.5.0
customhud-1.6.0
flair-1.0.0
fullbright_nofog-1.0.0
hitbox_plus-1.3.0
voicechat-1.0.0
chop-1.0.1
chatheads-0.1.1
horizonmatica-0.1.1
waymap-0.1.4
blockscope-0.3.1
rmotd-1.0.0
waypoints-1.0.0
rightharvest-0.1.1
killc-5.1.0
basic_hud-0.4.1
right_click_crops-1.0.0
resourcify-0.1.0
accurate_block_placement-1.0.0
stuck-1.0.0
mod_menu-0.3.0
appleskin-0.1.2
horizon_physics-0.15.1
inventory_wizard-2.3.3
crossversion-0.8.0
crossversion-0.7.1
motion_blur-0.1.0
astral_cruiser-0.1.0
basic_hud-0.1.0
toggle_sprint-1.0.0
freelook-0.3.1
freecam_plus-1.0.0
freecam-0.1.0
menu_panorama-1.0.0
crosshair_indicator-1.0.0
fair_freecam-1.2.0
status_effect_hud-1.0.0
appleskin_horizon-1.0.0
armor_status-1.0.0
light_overlay-1.0.0
fullbright_horizon-1.0.0
inventory_profiles-1.0.0
worldedit-1.2.1
veinminer-0.3.2
blockscope-0.3.0
fly_speed-0.1.0
fullbright-1.0.0
jei-0.1.0
appleskin-0.1.1
serverify-0.1.0
eatinganimation-0.1.1
appleskin-1.0.0
rightharvest-0.1.0
chatheads-0.1.0
eatinganimation-0.1.0
shulker_peek-0.1.0
xtoxray-2026.29.0
distant_horizons-0.1.0
lookat-0.2.1
classic_zoom-2.0.0
coords_hud-2.0.0
recipes-2.0.0
enchantmenthints-0.1.0
classic_zoom-1.0.0
treefall-0.3.0
blockscope-0.2.0
biomecompass-0.2.2
itemnew-0.1.1
mousetricks-0.2.0
compass_bar-0.1.0
smartf3-0.1.0
carryblock-0.1.2
fps_overlay-2.0.0
minimap-2.0.0
keystrokes-2.0.0
zoom-2.0.0
lookat-0.1.0
mod_menu-0.1.1
blockscope-0.1.0
veinminer-0.3.0
recipes-1.0.0
minimap-1.0.0
zoom-1.0.0
fps_overlay-1.0.0
keystrokes-1.0.0
coords_hud-0.1.0
staging
No labels
pull-request
report
report
report
Milestone
Clear milestone
No items
No milestone
Projects
Clear projects
No items
No project
Assignees
Clear assignees
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-mods#72
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/horizon-rust/horizon-mods/pull/63
Author: @ludovic111
Created: 10/30/2026
Status: ✅ Merged
Merged: 10/31/2026
Merged by: @levzzz5154
Base:
main← Head:fix/smp-audit-sync📝 Commits (1)
5aacb47SMP: the audit log syncs only after a tick that wrote to it📊 Changes
1 file changed (+17 additions, -4 deletions)
View changed files
📝
native/smp/mixins/smp/smp_store.rs(+17 -4)📄 Description
What
The SMP's audit log was
sync_data'd at the end of every server tick, even when nothing had been appended. It now syncs only after a tick that wrote to it, and when the world closes; a quiet tick makes no system call. The durability is the same: a line is still written before its change, and synced at the end of that tick.This fix was meant to ride in #57 and #58, but they were merged just before it was pushed, so main still has the per-tick fsync.
Cost per tick (55 bots)
tools/server_bench.py --servers horizon --bots 55 --behaviour walk --warmup 30 --seconds 120on the Mac mini (M4 Pro, shared and noisy), Horizon f533c3a,fastprofile. Same commit and profile both sides: the stock engine (SMP off) against the engine built with this mod (SMP on, 55 accounts opened). The pairs ran in alternating order, each in fresh scratch homes.Pair 1 found a real cost: the audit log was
sync_data'd at the end of every tick, even with nothing appended, about +2.8 ms. It now syncs only after a tick that wrote to it (commit "the audit log syncs only after a tick that wrote to it", in #57). After the fix, SMP on averages 6.13 ms against 6.08 ms off: +0.05 ms, within the run-to-run spread (0.12 ms). Chunks sent per second were the same (557 on both sides). The bots don't run SMP commands, so this measures the quiet tick the server pays all the time; a command costs only on the tick it runs.Pair 1 is main's code: SMP on cost about +2.8 ms MSPT (P99 16.2 against 8.2 ms). Pairs 2 and 3 are this fix: SMP on averaged 6.13 ms against 6.08 ms off, within the run-to-run spread.
License
MIT, original.
Checks
cargo fmt --check,cargo clippy --all-targets --locked -- -D warnings,cargo test --locked(25 passed). The fullnative.py proof smppassed with this change (two real clients on a dedicated server: economy, market, trades, coinflip).🤖 Generated with Claude Code
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.