SBG PiPBallCam
Adds a Picture in Picture (PiP) camerea that tracks your golf ballSBG-PiPBallCam
A BepInEx5 mod to Add a Picture in Picture (PiP) camerea that tracks your golf ball
TO-DO
Issues
#### To report an issue, please submit an issue GitHub Issues
Installation
- Install BepInEx 5
- Download and drop the SBG-PiPBallCam.dll file in the \BepInEx\plugins folder of your Super Battle Golf Installation
Controls
- Press F8 to toggle the PiP ball camera on or off.
- Change the
ToggleKeysetting inBepInEx/config/com.kingcox.sbg.pipballcam.cfgto use a different key. - The camera is enabled by default and automatically appears while the tracked ball is moving.
Position and Size
Set these under [PiP] in the same config file:
Position X(0–100, default 98.75): 0 puts the PiP against the left edge of the screen, 100 against the right edge.Position Y(0–100, default 31.25): 0 puts the PiP against the bottom edge of the screen, 100 against the top edge.Size(5–50, default 20): the PiP's width and height as a percentage of the screen's width and height.
The PiP always stays fully on screen at any position and size.
Performance Settings
The PiP camera renders the scene a second time, so it has a real FPS cost. These settings live under [Performance] in the same config file:
Render Scale(25–100%, default 100%): renders the PiP at a lower resolution. Reduces GPU pixel work, but does not reduce the cost of drawing the scene's objects a second time. Below 100%, the PiP is drawn on top of the game's HUD.Render Distance(50–1000 Unity units, default 1000): skips distant objects in the PiP. Lower values can reduce both CPU and GPU cost, but distant scenery will be cut off.Shadows(default off): turning this on makes the PiP redraw the shadow maps, which adds a noticeable part of its cost.Depth And Opaque Textures(default on): turning this off saves GPU time, but effects that rely on them (such as water or transparency) may look different in the PiP.Max FPS(0–240, default 60; 0 = every frame): limits how often the PiP is rendered. The default of 60 cuts the PiP's cost by roughly 60% while still looking smooth; lower values save more but look choppier. Any limit draws the PiP on top of the game's HUD.
Set Enabled = true under [Personal Diagnostics] to show a frame-time overlay and log 10-second averages to the BepInEx log. While diagnostics are on, the PiP stays open even when the ball isn't moving, so you can compare FPS with the PiP toggled on and off using F8. Toggling restarts the 10-second average, and the diagnostics window can be dragged anywhere on screen (its position is saved).
Benchmark
With diagnostics enabled, press F9 (Benchmark Key) while the PiP is following a ball to step through a set of settings: PiP off, full quality, each setting on its own, two "shadows off" combinations, and minimum settings. A PiP off run happens before and after every setting, and each setting is compared to the average of the two runs either side of it, so the game getting faster or slower during the run doesn't skew the results. Each step takes about 12 seconds (2 seconds to settle, 10 seconds measured), roughly 4 minutes in total. Stay still and don't move the camera while it runs. The diagnostics window and the BepInEx log show each setting's average FPS and its cost in milliseconds and FPS compared to PiP off. Press F9 again to cancel. Your saved settings are restored afterwards and the config file is not changed.
Building for source
set the env variable SUPER_BATTLE_GOLF_PATH to your Super Battle Golf installation directory.
dotnet build
