FPSCounter
A lightweight, clean FPS counter mod for YAPYAP
模組介紹 作者原文
YAPYAP FPS Counter
A lightweight, clean FPS counter mod for YAPYAP, built with BepInEx.
Designed to be readable, configurable, and performance-friendly.
Features
- Real-time FPS display
- Clean UI
- White text
- Subtle black outline for readability
- Small, unobtrusive size
- Top-right placement
- Positioned above existing HUD elements
- Hotkey toggle
- Press F2 to show/hide the FPS counter
- Configurable
- Enable or disable the counter via config file
- Low FPS warning
- FPS text turns red when FPS drops between 1–10
- Performance friendly
- No heavy reflection loops
- No per-frame object searches
- Minimal GC pressure
Installation
- Install BepInEx 5.x for YAPYAP
- Copy the compiled.dll into: YAPYAP/BepInEx/plugins/
- Launch the game once to generate the config file
Configuration
Config file location: YAPYAP/BepInEx/config/sekond.yapyap.fpscounter.cfg
Available options:
- Enable / disable FPS counter
- Default visibility state
- (Future) Position offsets
Controls
| Key | Action |
|----|-------|
| F2 | Toggle FPS counter |
Technical Notes
- Uses Unity UI (UGUI) for compatibility
- Automatically finds a valid Canvas at runtime
- Anchored to the top-right for consistent placement
- FPS calculated using smoothed delta time
- Color updates dynamically based on FPS value
Known Behavior
- FPS counter hides automatically when no valid game canvas is available
- UI positioning may slightly vary depending on resolution and aspect ratio
Planned Improvements
- Custom position offsets via config
- Optional background panel
- Color gradient (green → yellow → red)
- Font size scaling options
License
Community mod — free to use and modify.
Credit appreciated but not required.
Credits
- Built with BepInEx
- Thanks to the YAPYAP modding community for guidance and testing
安裝與使用 安裝:按包內說明操作
- 解壓本站下載的壓縮包,先讀包內的 readme / 說明檔案。
- 多數模組依賴遊戲的模組載入器:常見做法是用社群模組管理器(如 r2modman)選中本遊戲安裝,由管理器自動處理載入器與依賴。
- 手動安裝時,把模組檔案放進遊戲目錄下對應的 Mod / plugins 資料夾。
- 啟動遊戲確認載入成功;帶「前置依賴」的模組需要把依賴一併安裝。
不同模組的安裝位置差異較大,包內說明是最可靠的依據。
前置依賴
下面這些內容需要先安裝,否則該模組不會生效:
BepInEx-BepInExPack