mirror of
https://github.com/narrrl/proton-stream.git
synced 2026-12-03 20:01:50 +01:00
The demuxer read-ahead was a fixed 48 MiB, about 10 seconds of 4K at 40 Mbps against a 30-second target. It is now sized from the device's RAM: 192 MiB at 5 GiB and up (phones sold as 6 GB or more), 96 MiB at 3 GiB, and the old 48 MiB below that or on a low-RAM device. The seek-back buffer is a quarter of it, below mpv's 50 MiB default, so small devices hold less than before. The player now hands the file's container frame rate to the display with Surface.setFrameRate (FIXED_SOURCE, seamless switches only), so 24 and 30 fps episodes get a refresh rate they divide evenly instead of the phone's 90 or 120 Hz. The hint is cleared when the episode ends.