tunarr icon indicating copy to clipboard operation
tunarr copied to clipboard

Add 'artificial throttling' as an option in config

Open chrisbenincasa opened this issue 1 year ago • 1 comments

dizquetv added artificial throttling in several backend services, seemingly because when they ran it would affect the video stream (perhaps when hardware transcoding is not enabled). For folks that are running the new version on beefier machines, or are using hardware transcodings, we shouldn't artificially throttle the backend. We can give them the option of turning this on.

chrisbenincasa avatar Feb 01 '24 21:02 chrisbenincasa

FWIW, the 'throttling' seems like it actually just calls to setImmediate - likely to let any outstanding I/O calls to flush, etc. If this is really an issue (perhaps it's more apparent for concurrent streams?) then we could consider off-loading CPU-intensive task (time slot scheduling) to Node worker_threads

chrisbenincasa avatar Feb 11 '24 18:02 chrisbenincasa