hugeBlack / OpenParsec

An open-source Parsec client for iOS/iPadOS. This repo implements mouse & keyboard support. WebRTC mode is also available in this repo.
GNU General Public License v3.0
9 stars 3 forks source link

Significantly optimized the sound latency performance #3

Open xiaoxuhuanxiang opened 1 week ago

xiaoxuhuanxiang commented 1 week ago

Significantly optimized the sound latency performance, essentially refining the ring buffer algorithm to the extreme, ensuring good performance even on older devices (such as the A9X processor). For newer devices, turning off and then turning the sound back on once may achieve even lower latency.

hugeBlack commented 1 week ago

Thank for your contribution! I'll look into this later. By the way, have you find out why bit rate is super low when using the Parsec SDK? It seems that this issue can only be ameliorated by using an USB ethernet adapter.

xiaoxuhuanxiang commented 1 week ago

Thank for your contribution! I'll look into this later. By the way, have you find out why bit rate is super low when using the Parsec SDK? It seems that this issue can only be ameliorated by using an USB ethernet adapter.

I have not encountered this issue here; I chose the Parsec SDK. Tested within a local area network, at 4K resolution with H.265 encoding. The bitrate is perfectly normal, and the clarity and smoothness are both excellent (the device is an iPhone 12 Pro Max). In contrast, another SDK is very laggy and unusable.