Bons and Furious 1.0.49
Curse Maven Snippet
What's new
Bons and Furious 1.0.49
885 controls for Minecraft 1.20.1 Forge, up from 384 in 1.0.48.1. This release adds 501 controls for 185 mods, 136 of them covered for the first time, and fixes several older ones. Still one JAR for client and server with nothing else required; every target mod is optional.
Collections Of Optimizations
With Bons and Furious 1.0.49, Collections Of Optimizations (COO) 5.8 adds nothing that Bons and Furious does not already do, apart from the exceptions below. This was checked against both JARs and in game with both installed, on a dedicated server and in single player.
547 controls make the same change as one of COO's patches (578 patches), 444 of them since this release, and 7 more step aside where COO rewrites the same code. Exactly one copy of each change runs: while the COO option is on and COO really applies its patch, the control steps aside; otherwise the control runs and COO's copy is left out. One line at start says which.
Exceptions:
- Nine COO patches that COO switched off by itself in our test packs, so they were never tested next to Bons and Furious, and that have no match yet: two Subtle Effects fluid hooks and its dry chest ticker, TerraBlender's lazy namespace source, and five that have no COO option (the Create Big Cannons autocannon seat, Does Potato Tick, ElysiumAPI's biome source replacers, a Goety glow gate and a vanilla structure state patch). They are planned for 1.0.50.
- ByePregen (COO's
MixinColumnTemplate): no match yet. - Five controls written for this release were held back for a later in-game check (listed under Other changes), so the COO patches they match are not covered yet.
- COO's change that lets a server accept NBT of any size from a client: left out on purpose, since it removes a safety limit.
- Covenant of the Seven (three COO patches): the mod could not be downloaded to test against.
- Not Enough Animations (two client patches): left out because of that mod's licence.
- COO's trade-off options: their Bons and Furious twins ship switched off, so turn on the matching switch (its wiki section names the COO option).
- Eight COO options that are not patches still run next to Bons and Furious, without conflict.
COO 5.8 itself does not load next to Entity Model Features 3.2.4, with or without Bons and Furious.
501 new controls
- Minecraft and Forge: world generation prepares the shared parts of the terrain recipe once per chunk, and structure pieces share their block positions (about 1.3 GB less with every structure piece of our pack loaded). Chunk sections of one block or biome answer from that value, ray tests reuse each block shape's boxes, attribute lookups answer directly, refreshing an effect at the same strength keeps its modifiers, removed block entities leave the ticker list in one pass, and chunks that may not tick park their overdue block and fluid ticks. On the client the sky colour blend is computed once per frame, text looks its font up once per font, missing resources are remembered, and the classes needed right after joining a world load in the background first. Forge event listeners that would return at once are not called (a living entity tick with 139 listeners took 23% less).
- Maps, menus and client effects: Xaero's World Map tiles share one empty height table until they get a height, FTB Chunks copies and uploads its minimap regions with less work, Photon particles reuse their corner vectors and light position, Shoulder Surfing traces its camera only where a block can be hit, GeckoLib finds bones by name from an index, FancyMenu identifies screens without repeating its lookups, and Flywheel's worker threads sleep and wake without a shared lock.
- Mobs and bosses: mobs stop searching for prey, threats or targets while their level has none (Alex's Mobs, Primitive Mobs, MmmMmmMmmMmm, Wither Reincarnated and more), camera-shake searches walk no entity sections while nothing shakes (Dodo's Mobs, EEEAB's Mobs, From the Shadows Reborn, Myths & Legends, Saint's Dragons), capability lookups keep each entity's handle (EEEAB's Mobs, L2 Hostility, Wither Reincarnated), and Ice and Fire, Mowzie's Mobs, L_Ender's Cataclysm, Critters n' Crawlers and Skarrier Mobs skip repeated work in their models, animations and searches.
- Magic and spells: Blood Magic builds its ARC recipe list once per recipe table and checks routing connections with a hash set, Goety's brewing book pages share one brew table and its boss-music checks return at once for other entities, Iron's Spells skips its spell particle search while nobody near casts, and Ars Nouveau addons, Hexerei, Mahou Tsukai, Tome of Blood and others leave out lookups that cannot change anything.
- Items, weapons and accessories: Curios item and slot checks walk the slots without throwaway objects, Enigmatic Legacy finds its creative-tab items without walking every item, L2 Archery bows and arrows keep their parsed upgrades and textures, Tons Of Enchants runs its Frostbite scan on the server only, and Simply Swords, Brutality, Fallen Traits, Odd Accessories, Unique Accessories, More Relics and Echelon skip repeated lookups.
- Machines and automation: Create skips block entity behaviours that do nothing per tick, Mystical Agriculture's essence furnaces and Cooking for Blockheads' ovens take their results from a recipe index, Titanium machines read their block state once per facing question, Mob Grinding Utils fans send their state only when it changed, and Powah, Hostile and Sanguine Neural Networks, Copycats+ and Industrial Foregoing do less repeated work.
- World, blocks and structures: Immersive Weathering rolls its growth chances in one batch and walks its area checks over a cached offset table, Lithostitched shuffles template pools without streams, Integrated API blends terrain only around the pieces that reach each spot, Block Swap's retro-gen skips sections with nothing to swap, Lootr's waiting chests repeat only the chunk test that held them back, TerraBlender answers region lookups without its lock, and Supplementaries, Chimes, Zeta, Structurify and Biolith skip repeated work.
- Libraries: Balm's config reads skip an identifier rebuild and its dynamic models reuse their cache keys, Patchouli finds a held item's guide book from an index, KubeJS lists its generated pack from a sorted index, Moonlight skips map marker refreshes for maps without block markers, and Curios, L2 Library, Cerbon's API, Celestial Core, EndingLibrary, NeoBackports and Konkrete leave out work whose result is not used.
189 of the new controls ship switched off. 146 are trade-offs: they save work by doing
something less often or less exactly (for example the client sets up the light of newly received chunks over
several frames, dropped item stacks draw fewer copies, and Xaero's World Map uploads new tiles more slowly at
high frame rates). 43 are gameplay fixes that change how a mod plays (for example boats survive a fall
onto land, the Meka-Tana hits the mobs around its target only on a fully charged swing, and Modular Routers' vacuum module no longer
duplicates items). Each one's wiki section says what it changes. 40 of them take a number, on a line
<key>.value=<number> directly under the switch.
Thirty-seven of the new controls are fixes:
- Memory: Alex's Mobs kept every closed world, Mahou Tsukai's Insight Eyes, Sky Arena and Tons of Enchants kept players who left, Iron's Spells kept other players' spell state across worlds, and Citadel's book previews, Opposing Force, Xaero's config library and a Simply Swords sound loop kept the last world after it closed. Photon's block effect cache, Enigmatic Legacy's angered guardians list and Simply Swords Overhaul's dash and recall timers only grew, and The Immersive Music Mod kept every song whole in sound memory (songs are now streamed). Each now lets go.
- Crashes and errors: Dungeons Delight's Tenacity divided by zero at some food levels, firing the Meka-Gun stopped a dedicated server, the Backup SOS charms of Lethality did too, a world did not load with Biolith and older BCLib builds, Blessfulled's hurt overlay crashed with its "only by player" setting, and entity unloading (vanilla's walk and Valkyrien Skies' own loop) crashed or skipped chunks when a mod changed chunks while it ran. A Hostile Neural Networks data model of a removed mob broke every kill, a Mimic augment with nothing in front broke a Tome of Blood spell, MmmMmmMmmMmm's damage numbers failed for unregistered damage types, More Relics lost delayed tasks scheduled by another task, Tome of Wonders added squills to the live world from a world generation thread, and Integrated Villages' workstation picks piled up and collided between threads.
- Other: Ars Energistique relay splitters piled up capability listeners, Corpse swept old death files with several threads at once, a broken cucumber-tags.json was logged once per recipe, Goety Cataclysm registered its golem types again at every world load, Architectury lost network receivers that mods registered at the same time, L2 Complements' chain-digging set was not safe to read from the client thread, hovering a sanctum compass changed it, snuffles showed fluff the server did not have, and clients also ran the Meka-Gun's hit search, laid scintling goo of their own and changed blocks under RefinedRain's tidal waves. The Immersive Music Mod's debug lines now go to the debug log, Tome of Blood logs no template line at server start, and MmmMmmMmmMmm builds a damage number message only when it sends one.
Fixed
- Memory after a world closes:
forge_object_holder_pass_index(1.0.40 to 1.0.48.1, with Forge before 47.4.27) kept a closed single-player world's whole server until the next world started, andvanilla_chunk_palette_direct_nbtandvanilla_chunk_biome_codec_memokept every single-player world of a game session.alexscaves_item_renderer_reuse,alexsmobs_item_renderer_reuse,cataclysm_shield_layer_pose,subtleeffects_display_tick_biome_reuseandvanilla_leveldat_encode_reusekept the last world or its registries. All let go now. - Configuration file: when it cannot be read or created, every switch now keeps its default, so the switches that ship off stay off. Before, every switch turned on.
vanilla_spawn_area_preload: a dedicated server's watchdog could stop the first start while the spawn area was prepared (seen with ModernFix's remove_spawn_chunks).valkyrien_packets_server_thread: an Error thrown by a Valkyrien Skies packet handler stopped the server. It is now caught like an exception.- Guard table: if Bons and Furious cannot read its own guard table (a damaged jar), it now applies no patch at all and logs one ERROR line. Before, one bad line could let every patch apply without its checks.
Other changes
- Numbers for opt-in switches: a switch that takes an interval, a cap or a distance has a line
<key>.value=<number>directly under it in config/bons_and_furious.properties. A missing line is added with its default; a value that is not a number or out of range gives the default and one warning. - Fewer start-up warnings: a switch whose mod is not installed is simply off, without a version warning, and a check of how another mod hooks the same code no longer turns a switch off in packs without that mod. A switch can also name a known other build of its mod and stay off there quietly.
- Collections Of Optimizations: when one COO patch serves options that several Bons controls make, it is left out only while all of them run, and a COO patch that needs a partner patch is left out whenever COO leaves the partner out.
- More builds and mods for older controls: TaCZ 1.1.8, Critters and Companions 2.7.1, Entity Model Features 3.3.x;
emf_arm_walk_gateandforge_render_layer_memowithout Oculus,vanilla_camera_fluid_memoin packs without the mods it checks,vanilla_entity_walk_skipon the server, the capability handle layer for levels and six more mods, and wider coverage ingeckolib_constant_resource_reuse,sliceanddice_wet_air_gate,netherexp_antidote_effect_guard,structurify_set_data_single_lookupandcataclysm_area_attack_scans. structurify_set_entries_reuseis now opt-in: while /reload runs, a structure check on another thread could still see the structure list from before the reload.- Touch'n Motion: its two ground probe switches stay off next to Valkyrien Skies, which replaces the same ray test; handing each probe over cost more than it saved.
- Held back for a later release:
arsnouveau_sky_texture_lean,geckolib_cube_bulk_write,dungeonsdelight_rush_overlay_zero_alpha_skip,vanilla_removed_player_chunk_unregisterandvanilla_biome_blend_row_cachewere written for this release but are not in it. - Credits: the jar's upstream-credits.json lists every credited target build again.
Notes
- Next to Too Fast,
vanilla_movement_check_slack(off by default) leaves Too Fast's three speed limits to it, and Mixin logs one "@ModifyConstant conflict. Skipping" line for each. That is expected. forge_listener_prologue_guardstands down on Forge 47.3.22, andvanilla_camera_fluid_memostands down next to Monster Expansion with one warning per client start, as since 1.0.26.- The cooking-recipe index (Cooking for Blockheads ovens, Mystical Agriculture essence furnaces, Blood Magic's ARC) stands aside when Polymorph, BCLib, Kiwi, ModernFix's faster_ingredients or FastSuite handles recipe lookups.
alltheleaks_crash_report_gc_skipworks on the client and in single player only.xaeroworldmap_unpack_pbo_orphanwas measured on an NVIDIA graphics card only.
Tested
Every new control was compared with the code it replaces on the real game classes, with the other installed mods' changes to those classes applied. The release then ran on client and dedicated-server copies of a 500-mod pack: with every control at its default, with every opt-in switch on (about 1.95 billion side-by-side comparisons with the original code on a dedicated server, none different), and next to other builds of several target mods. Collections Of Optimizations 5.8 ran next to it on a dedicated server and in single player, and each without the other, with the same vanilla terrain. A dedicated server with 640 mods started and generated the same terrain as without Bons and Furious. Opening and closing a single-player world four times left no old server in memory. Two rebuilds of the released JAR were byte for byte the same.
Install
Replace the older Bons and Furious JAR with bons_and_furious-1.0.49.jar and restart. Minecraft 1.20.1, Forge
47.3.22 or newer within 47.x; tested with 47.4.28. No required dependencies. Existing config choices are kept, and
the new keys are added with their defaults (the 189 opt-in switches off). Every control has its own switch in
config/bons_and_furious.properties, and a control whose target mod is missing or at another build is skipped.
The whole-pack benchmark on the project page was measured with 1.0.31 and has not been repeated for this release.
SHA-256 ebae74e636852f44f81658c36d4187eb732e3f79ed731d2ccaaeceeb233385c7.
This mod has no additional files