Risk of Rain 2
Install with App

Details

Latest version
1.4.0
Last Updated
First Uploaded
Downloads
5.1K
Likes
1
Size
24KB
Dependants

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, any modded DoT via R2API Dot) — 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
Timed buffs/debuffs (slows, timed effects, any modded timed buff) — every application adds a list entry the game walks every frame Applications with exactly the same remaining time are kept as one entry; the stack count and duration are 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 of any kind that tick together as one entry
Buffs MergeTimedBuffStacks true Keep timed buff/debuff applications with the same remaining time 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 раз в секунду. Влияет только на картинку.
  • Золото и опыт выдаются сразу, без облака летящих шариков.
  • Цифры лечения (Гриб, Коса и т.д., не реген) объединяются: одна цифра на цель раз в секунду. Само лечение не задерживается. Работает, если мод стоит у хоста.
  • Планула: убран звук лечения при каждом ударе, само лечение остаётся. Работает, если мод стоит у хоста.
  • Урон со временем (кровотечение, горение, «свалить» Иглокола, яд и любые модовые доты через R2API Dot): игра хранит каждый стак отдельно и перебирает их все на каждом тике и при каждом новом стаке. Теперь стаки одного игрока, которые наносят урон на одних и тех же тиках, хранятся одной записью с суммой урона. Число стаков на враге и урон те же, лимита нет.
  • Эффекты с длительностью (замедления, баффы со временем — любые, включая модовые): каждое применение добавляет запись в список, который игра обходит каждый кадр. Теперь применения с точно одинаковым оставшимся временем хранятся одной записью; число стаков на иконке и длительность те же.
  • Цифры урона объединяются: одна цифра на врага (на каждый цвет) раз в секунду. Сам урон не меняется. Работает у каждого, у кого стоит мод.
  • Чёрные дыры (Кольцо сингулярности, взрывы Пустоты, Первичный куб):
    • убраны слепящая вспышка, свет и искажение;
    • кольцо и граница остаются видны.

Всё можно выключить или настроить. Урон обрабатывает хост, визуальные исправления работают у каждого, у кого стоит мод.

Если какой-то эффект всё ещё слепит, включи 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.4.0 — the stack merging now covers everything: any damage-over-time type (bleed, burn, poison, Collapse, modded R2API dots — dots without a tick interval only merge on exactly equal timers) and any timed buff/debuff (slows, timed effects, modded ones) with exactly the same remaining time is stored as one entry. Stack counts and damage are unchanged; merged timed buffs are expanded again on respawn (Dio's Best Friend), so nothing is lost.
  • 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.
Thunderstore development is made possible with ads. Please consider making an exception to your adblock.