CloverPerformance

版本 v1.0.0·更新於 2026-03-08

Performance patches for very high deadlines

模組介紹 作者原文

CloverPerformance

Performance patches for very high deadlines. This brings my Deadline 205 framerate from 3fps to 60+fps.

Source

How does it work?

CloverPerformance contains 4 separate patches to skip costly math operations when the numbers involved get extremely high. These patches can be toggled off individually in CloverPerformanceConfig.json in the mod's folder if they are causing other problems.

SkipRerollSaves

In high deadline runs you may often be restocking the store or rerolling phone options frequently. This patch skips saving in those situations since the save file can be very large.

CacheStrings

The Strings.Sanitize function is the major culprit in performance loss at higher deadlines. The intention of this function is to replace keys like [C_TICKET] with the clover ticket graphic. It also contains some keys like [DEBT_NEXT] that invoke methods like GameplayData.DebtGetExt which don't pose a problem with small debt numbers, but become extremely slow when debt gets high. These slow methods are called regardless of if the input string has the keys or not.

This patch will cache the results of Sanitize until a major update to gameplay data, such as depositing into the ATM, spending coins, or spending clover tickets. This patch is most likely to cause visual issues, but will not cause any gameplay changes even if the text is displayed wrong.

CacheBigIntegerMath

Some expensive methods like GameplayData.InterestEarnedHypotetically are called multiple times in a single frame. This patch will cause any calls of these methods to cache their results for a single frame. This can potentially cause some wrong calculations if I implemented it wrong. If there's any patch to disable if you're worried about gameplay errors, I'd recommend this one.

PatchStringsSanitize

This is a kind of complicated patch called a "transpiler" which edits the code inside the Strings.Sanitize method. This will cause the method to skip over some costly math in the case that it isn't required by the input string. There are a lot of limitations to what I could do with this patch, but it is a pretty big performance improvement on it's own.

Contact

You can message me on Discord @Ooseykins or on Twitter as @ooseykins or @Aetha_Azazie

安裝與使用 安裝:按包內說明操作

  1. 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
  2. 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
  3. 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
  4. 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。

不同模組的安裝位置差異較大,包內說明是最可靠的依據。

前置依賴

下面這些內容需要先安裝,否則該模組不會生效:

BepInEx-BepInExPack

檔案與校驗

檔案名稱
CloverPerformance-1.0.0.zip
檔案大小
49.4 KiB