Brotato
35 rating
Fruit Compressor
   
Penghargaan
Favorit
Difavoritkan
Batalkan favorit
Ukuran File
Diposting
Diperbarui
8.825 KB
30 Nov 2024 @ 8:31pm
10 Mar @ 11:34pm
6 Catatan Perubahan ( lihat )

Berlangganan untuk mengunduh
Fruit Compressor

Deskripsi
Compresses fruit in order to reduce lag in the late game. The way it works:
- should the fruit spawn too fast for the game to handle, slow down their spawn rate
- in exchange, any On Consume effect is respectively magnified (heal by fruit, Farmer's harvesting, Spicy Sauce damage, Chubby's explosions)
- arbitrary cap at a single fruit every 2 seconds

So if a garden was to produce 4 fruit a second normally, with this mod gardens will produce a fruit worth 8 fruits every 2 seconds. This allows gardens to truly produce what they are supposed to, without causing lag. Vanilla gardens have a soft cap explained below.

Warning: Negative effects are also magnified. Your Druid run may end if you have high enough consumable heal.

Nerd talk below:
There is actually a limit how fast gardens can spawn fruit. The speed, or rather cooldown in between spawns is bound by how many times a second the game does processing. To give the numbers:
• each second the game may process the game loop up to 60 times (or the game runs at 60 ticks per second)
• gardens' default cooldown is defined as 900 ticks, being 60 ticks times 15 seconds
• the cooldown is also influenced by the gardens' animation speed, in a similar way melee weapons can't hit as fast as ranged do shoot
• theoretically the limit is 60 fruit per second per garden, or the cooldown of 1, but from tests, at attack speed of 9999999999999% the cooldown until next fruit was still somewhere between 1.7 and 2.5 (due to - you guessed it - the animation speed). Quite crazy, given that this much attack speed should spawn over 11 billion fruits a second
• in that test harvesting jumped from 23 to 453, giving 430 fruit consumed from a single garden over a 60 second round
• due to the vague influence of the animation speed, that gives us 7.16 fruit a second
• or a fruit spawned every 8.37 ticks, and that is essentially the soft cap on how many fruit you can get
18 Komentar
His Divine Shadow 6 Jun @ 10:57am 
Having the same issue as the guy below me, gardens weren't producing anything until I disabled this mod. Recent game update must have broken it.
SuperPass 4 Mei @ 12:38am 
With this mod, my garden doesn't produce any fruit...
(version: 1.1.10.9)
Mo  [pembuat] 29 Apr @ 1:56pm 
I'll investigate it
nurbak19 28 Apr @ 11:51am 
doesnt give bonus harvesting on farmer when i pick up fruits
Mo  [pembuat] 10 Mar @ 11:41pm 
Finally got around to updating the mod. Surprisingly, I didn't experience the game braking due to the mod. I updated it regardless applying the same logic to the games new code, which was just a smidge different. Please feel free to report any bugs, and now that I've got the whole environment set up for this version, I should be able to push updates soon after.
Florozeros 17 Feb @ 12:23pm 
nice, cant wait till i can keep playing my druid run without lag again
Mo  [pembuat] 13 Feb @ 8:47pm 
I am back from a break. I will look into it promptly
lmccracken7 5 Feb @ 4:14pm 
The new update has broken the mod, please fix it ASAP!
Mo  [pembuat] 6 Jan @ 10:41pm 
I am planning on adding a setting to change the interval cap, but haven't had time to play with Mod Options yet. To be fair, I only bought this game to make this mod
test 31 Des 2024 @ 11:58am 
this is the only cactus mod that works with other mods, also I would love to be able to decrease the caps in some settings because it still lags in end game with a lot of parks