optimize tf out of the cursor shit and override to go up to 120 fps.

This commit is contained in:
KingKDot
2026-03-06 18:47:12 -06:00
parent cc135acd36
commit c0580c559f
2 changed files with 30 additions and 24 deletions
@@ -66,13 +66,15 @@ func ensureH264EncoderLocked(width, height int) error {
closeH264EncoderLocked()
opts := &x264.Options{
Width: width,
Height: height,
FrameRate: 25,
Tune: "zerolatency",
Preset: "ultrafast",
Profile: "baseline",
LogLevel: x264.LogError,
Width: width,
Height: height,
FrameRate: 120,
Tune: "zerolatency,fastdecode",
Preset: "ultrafast",
Profile: "baseline",
RateControl: "crf",
RateConstant: 30,
LogLevel: x264.LogError,
}
enc, err := x264.NewEncoder(&h264Buf, opts)