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.
LagFix
Less lag from stacked items without changing their damage: AtG, Ceremonial Dagger, Fireworks, Noxious Thorn, 57 Leaf Clover, Gasoline, Ukulele, Polylute, Runic Lens. Instant gold/exp, toned-down black holes.
| Date uploaded | 2 weeks ago |
| Version | 1.3.1 |
| Download link | gameimprovement-LagFix-1.3.1.zip |
| Downloads | 1159 |
| Dependency string | gameimprovement-LagFix-1.3.1 |
This mod requires the following mods to function
bbepis-BepInExPack
Unified BepInEx all-in-one modding pack - plugin framework, detour library
Preferred version: 5.4.2122README
LagFix
Cuts the lag that comes from stacking items, without changing how much damage they deal, and removes the worst visual effects.
Описание на русском — ниже.
What it does
| Problem | Fix | Damage changed? |
|---|---|---|
| 57 Leaf Clover — every chance is rolled 1 + luck times | Same odds from a formula, at most 2 random rolls | No |
| Noxious Thorn — every transferred debuff stack is applied one by one (thousands per kill) | Damage-over-time stacks above 50 are merged into 50 stacks with a higher multiplier; other debuffs are capped at 50 | No (DoT); debuffs without damage are capped |
| AtG Missile, Ceremonial Dagger, Bundle of Fireworks — hundreds of projectiles | Above 12 per second (per player, per projectile type) extra ones are not spawned; their damage is added to the next one | No (same total) |
| Gasoline, Ukulele, Polylute, Will-o'-the-wisp, Runic Lens… — piles of identical effects | Same visual effect is shown at most 15 times per second | No, visual only |
| Gold and experience — clouds of flying orbs | Given instantly | No |
| Healing numbers (Bustling Fungus, Harvester's Scythe…, not regen) — one number and one network message per heal | One combined number per target per second; healing itself is not delayed | No, visual only |
| Planula — healing sound on every hit taken | Sound removed; the healing stays | No, sound only |
| Damage over time (bleed, burn, Collapse, poison…) — every application is its own stack and the game walks all of them on every tick and every new stack | Stacks of one player that tick on the same ticks are kept as one entry with their summed damage; the stack count on the enemy is unchanged | No |
| Damage numbers — one per hit, and each new one reads back every number on screen | One combined number per enemy and colour per second | No, visual only |
| Black holes (Singularity Band, Void death bombs, Primordial Cube) — blinding flash | Lights, screen flash and distortion removed; the ring/edge stays visible | No, visual only |
Every fix can be turned off, and the limits are configurable.
Multiplayer
Damage-related fixes run on the host. The visual fixes work for whoever has the mod.
Configuration
BepInEx/config/com.proigryfedorov.lagfix.cfg — applied immediately.
| Section | Key | Default | Meaning |
|---|---|---|---|
| Items | FastLuck | true | Clover formula |
| Items | MergeThornStacks | true | Noxious Thorn merging |
| Items | ThornStackCap | 50 | Max stacks of one debuff transferred to one enemy |
| Items | MergeProjectiles | true | Projectile merging |
| Items | ProjectilesPerSecond | 12 | Budget per player per projectile type |
| Items | MergedProjectiles | MissileProjectile, DaggerProjectile, FireworkProjectile | Which projectiles merge |
| Items | MergeDotStacks | true | Keep damage-over-time stacks that tick together as one entry |
| Effects | ThrottleEffects | true | Effect limit |
| Effects | EffectsPerSecond | 15 | Same effect per second |
| Effects | InstantExperience | true | No experience orbs |
| Effects | InstantGold | true | No gold orbs |
| Effects | MergeHealNumbers | true | Combine healing numbers |
| Effects | HealNumberInterval | 1 | Seconds between combined healing numbers |
| Effects | MutePlanula | true | No Planula healing sound (host) |
| Effects | MergeDamageNumbers | true | Combine damage numbers |
| Effects | DamageNumberInterval | 1 | Seconds between combined damage numbers |
| Effects | TameBlackHoles | true | Toned-down black holes |
| Effects | BlackHoleNames | (see config) | Which objects count as black holes |
| Debug | LogEffectNames | false | Log every spawned effect/projectile name, to find more to add |
Описание на русском
Убирает лаги от больших стаков предметов, не меняя их урон, и вырезает самые неприятные эффекты.
- 57-листный клевер. Игра бросает кость 1 + удача раз на каждый шанс. Мод считает тот же шанс по формуле, максимум двумя бросками.
- Вредный шип. Игра переносит каждый стак дебаффа отдельно, это тысячи действий на одно убийство.
- Стаки урона (кровотечение, горение…) сверх 50 объединяются в 50 стаков с большим множителем, общий урон тот же.
- Дебаффы без урона обрезаются до 50.
- AtG Missile, Церемониальный кинжал, Связка петард. Сверх 12 снарядов в секунду (на игрока и на вид снаряда) лишние не создаются. Их урон добавляется к следующему снаряду, общий урон тот же.
- Бензин, Укулеле, Полилютня, Блуждающий огонёк, Руническая линза… Одинаковый эффект показывается не чаще 15 раз в секунду. Влияет только на картинку.
- Золото и опыт выдаются сразу, без облака летящих шариков.
- Цифры лечения (Гриб, Коса и т.д., не реген) объединяются: одна цифра на цель раз в секунду. Само лечение не задерживается. Работает, если мод стоит у хоста.
- Планула: убран звук лечения при каждом ударе, само лечение остаётся. Работает, если мод стоит у хоста.
- Урон со временем (кровотечение, горение, «свалить» Иглокола, яд…): игра хранит каждый стак отдельно и перебирает их все на каждом тике и при каждом новом стаке. Теперь стаки одного игрока, которые наносят урон на одних и тех же тиках, хранятся одной записью с суммой урона. Число стаков на враге и урон те же, лимита нет.
- Цифры урона объединяются: одна цифра на врага (на каждый цвет) раз в секунду. Сам урон не меняется. Работает у каждого, у кого стоит мод.
- Чёрные дыры (Кольцо сингулярности, взрывы Пустоты, Первичный куб):
- убраны слепящая вспышка, свет и искажение;
- кольцо и граница остаются видны.
Всё можно выключить или настроить. Урон обрабатывает хост, визуальные исправления работают у каждого, у кого стоит мод.
Если какой-то эффект всё ещё слепит, включи LogEffectNames. Его имя появится в логе, и его можно дописать в BlackHoleNames.
Monster spawns in long runs
While monsters cannot spawn, the spawn director keeps banking credits; an event like the Halcyonite shrine then spends the whole bank in an endless stream. LagFix caps the bank at 10 of the priciest monster the director can buy, keeps at most 80 monsters alive (for every spawn source) and spawns at most 8 per second. Settings: [Spawns] LimitSpawns, CreditCapCards, MaxAliveMonsters, SpawnsPerSecond.
Спавн в долгих забегах. Пока врагов нельзя заспавнить, директор копит кредиты, а потом событие вроде обелиска Халцонита тратит их бесконечным потоком. Теперь:
- запас кредитов ограничен (10 самых дорогих врагов);
- живых врагов не больше 80;
- спавн не чаще 8 в секунду.
Changelog
- 1.3.1 — damage over time reworked: no stack cap any more; stacks of one player that tick together are stored as one entry with their summed damage, so the stack count and the damage are exactly as in the game while thousands of stacks no longer lag.
- 1.3.0 — damage-over-time stacks past 100 of one effect are folded into existing ones with the same total damage (fixes the lag at thousands of stacks); damage numbers combined into one per enemy and colour per second.
- 1.2.1 — removed the Planula healing sound played on every hit taken; the healing stays.
- 1.2.0 — healing numbers (not regen) are combined into one per target per second, which removes the lag from many heals per tick. The healing itself is not delayed.
- 1.1.0 — monster spawn limits for long runs: the spawn director's credit bank is capped, at most 80 monsters alive and 8 spawns per second, so events like the Halcyonite shrine no longer spawn endlessly.
- 1.0.0 — first release.