Brotato
27 oy
Fruit Compressor
   
Ödül
Favorilere Ekle
Favorilere Eklendi
Favorilerden Çıkar
Dosya Boyutu
Gönderilme
Güncellenme
8.825 KB
30 Kas 2024 @ 20:31
10 Mar @ 23:34
6 Değişiklik Notu ( görüntüle )

İndirmek için abone ol
Fruit Compressor

Açıklama
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
14 Yorum
Mo  [yaratıcı] 17 saat önce 
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 Şub @ 12:23 
nice, cant wait till i can keep playing my druid run without lag again
Mo  [yaratıcı] 13 Şub @ 20:47 
I am back from a break. I will look into it promptly
lmccracken7 5 Şub @ 16:14 
The new update has broken the mod, please fix it ASAP!
Mo  [yaratıcı] 6 Oca @ 22:41 
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 Ara 2024 @ 11:58 
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
Amon Grabmore 19 Ara 2024 @ 3:45 
btw its funny how loud and demon lost their place ast best endless Brtotaos (farmer maybe) to druid because pearl ist super brocken on him^^
Amon Grabmore 19 Ara 2024 @ 3:31 
yes but its not a problem so long you know what you are doning i go for no heal frome fruit asap anyway i heal over crits and material pick up most of the time.
Thanks for the mod men.
Mo  [yaratıcı] 18 Ara 2024 @ 20:16 
Finally had time to look into it. I completely overlooked that poisoned fruit used a different effect (consumable_damage_effect) than regular. There was nothing negative about it, but rather outright not working. Well it is fixed now and a patch should be pushed to you soon.

Fair warning - unless you have negative consumable heal, compressed poisoned fruit can and will kill you
bnbqq8 18 Ara 2024 @ 9:07 
I think its negative to druid. When I turn this MOD off, I gain 10x more Luck per wave than when i turn it on, in successive waves. I think you should warn this neg feature in your description, since many of us are druid players. It almost kill my godroll start QAQ