Please disclose if any significant portion of your mod was created using AI tools by adding the 'AI Generated' category. Failing to do so may result in the mod being removed from Thunderstore.
Farm Performance
Updated 9 hours agoJoin our Discord: discord.gg/haSwxPa9GU to report bugs, request features or other mods, or give feedback.
← All mods in World and Performance
Farm Performance
Switch: F1 → 0 - Sub-mods → Farm Performance (on by default).
A big farm (thousands of barley, flax or oat plants) costs FPS. Three things add up there:
- Shadows: every crop casts a shadow, and the game draws shadows again for each of its shadow layers. Crops (plants on cultivated ground, growing or ready to pick) can stop casting them; trees and saplings keep theirs.
- Green Thumb sparkles: Epic Loot's Green Thumb cultivator enchantment gives every plant it speeds up its own sparkle effect. In a field of 4,000 that is 4,000 particle effects. Show them on 1 plant in 10 (always the same ones), all or none. The faster growth itself is not changed.
- Harvesting a whole field at once (Planting Tools' Shift+E picks every crop around you in the same frame): every crop played its pick effect, and threw each item it gave into the world as its own physics object that you then picked up again. Now what you pick goes straight into your inventory (with the usual "Barley x24" message; what does not fit falls out as before), and per frame only the first few picks play their pick and bonus effects and the bonus "+1" text. The bonus yield itself is still given. Crops another player picks drop their items as always. Your inventory is also updated once per harvest instead of once per item: every update made the game rebuild your known recipes and buildable pieces. And no log line is written per bonus crop.
- A field growing up all at once: coming back to a big field, its crops finish growing within seconds of each other, and every one played the grow effect and wrote a line to the game's log. Now per frame only the first few play the effect and none writes the line (a test field of 900 carrots: no frame over 50 ms, against 10 frames up to 118 ms without).
- A Valheim Enhanced Edition slowdown: with its "FastUnloadCheck" setting off (as in the pack), it kept every object loaded in a list that only grew, and every destroyed object (picked crop, item picked up, felled tree, killed creature) searched that whole list: about 12 ms each after a while. While that setting is off, this bookkeeping is now skipped and the list emptied; turned on, Valheim Enhanced Edition works as before.
Changes apply at once to everything loaded. Client-side: each player chooses for their own screen.
Settings (F1)
In F1 these are under Farm Performance - ..., below the switches.
General
| Setting | Default | What it does |
|---|---|---|
| Crop shadows | off | Crops (barley, flax, oats, carrots, ... growing or ready) cast shadows. Off = they do not, which saves a lot of drawing in a big field; trees and saplings keep their shadows. |
| Green Thumb sparkles | Few | Epic Loot's Green Thumb cultivator gives every plant it speeds up its own sparkle effect. All = every one, Few = 1 plant in 10 (enough to see the field is boosted), None = no sparkles. The faster growth is not changed. (options: All, Few, None) |
Growing
| Setting | Default | What it does |
|---|---|---|
| Grow effects per frame | 6 | When many crops finish growing at once (coming back to a big field), only this many per frame play the grow effect; the rest grow without it. 0: no grow effects at all. (range 0 to 100) |
Harvest
| Setting | Default | What it does |
|---|---|---|
| Harvest straight into inventory | on | What you pick from a crop (and berries, mushrooms, ...) goes straight into your inventory, instead of each item flying out as its own physics object that you then pick up. Saves a lot when harvesting a whole field at once (Plant Easily's Shift+E). What does not fit falls out as before. |
| Pick effects per frame | 6 | Picking many plants at once: only this many per frame play their pick effect, bonus effect and bonus "+1" text; the rest are picked without them (the bonus yield is still given). 0: no pick effects at all. (range 0 to 100) |