fix: uTP crash hanging torrent client, uTP peers not being preferred

feat: increase video buffer [hopefully]
This commit is contained in:
ThaUnknown 2024-11-17 17:10:52 +01:00
parent b079e7978d
commit 6a8d0cbea8
No known key found for this signature in database
4 changed files with 619 additions and 457 deletions

View file

@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "5.5.8",
"version": "5.5.9",
"private": true,
"author": "ThaUnknown_ <ThaUnknown@users.noreply.github.com>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",

View file

@ -12,10 +12,14 @@ const flags = [
// safe performance stuff
['enable-features', 'PlatformEncryptedDolbyVision,CanvasOopRasterization,ThrottleDisplayNoneAndVisibilityHiddenCrossOriginIframes,UseSkiaRenderer,WebAssemblyLazyCompilation'],
['disable-renderer-backgrounding'],
// disabling shit, vulkan rendering, widget layering aka right click context menus [I think] for macOS [I think]
['disable-features', 'Vulkan,WidgetLayering'],
// disabling shit, vulkan rendering, widget layering aka right click context menus [I think] for macOS [I think], rest is for chromium detecting how much video it should buffer, hopefully it makes it buffer more
['disable-features', 'Vulkan,WidgetLayering,MediaEngagementBypassAutoplayPolicies,PreloadMediaEngagementData,RecordMediaEngagementScores'],
// utility stuff, aka website security that's useless for a native app:
['autoplay-policy', 'no-user-gesture-required'], ['disable-notifications'], ['disable-logging'], ['disable-permissions-api'], ['no-sandbox'], ['no-zygote'], ['bypasscsp-schemes']
['autoplay-policy', 'no-user-gesture-required'], ['disable-notifications'], ['disable-logging'], ['disable-permissions-api'], ['no-sandbox'], ['no-zygote'], ['bypasscsp-schemes'],
// chromium throttles stuff if it detects slow network, nono, this is native, dont do that
['force-effective-connection-type', '4G'],
// image video etc cache, hopefully lets video buffer more and remembers more images, might be bad to touch this?
['disk-cache-size', '500000000']
]
for (const [flag, value] of flags) {
app.commandLine.appendSwitch(flag, value)

View file

@ -30,7 +30,7 @@
"webpack": "^5.91.0",
"webpack-cli": "^5.1.4",
"webpack-dev-server": "^5.0.2",
"webtorrent": "^2.4.11"
"webtorrent": "^2.5.6"
},
"devDependencies": {
"@cloudflare/workers-types": "^4.20240222.0",

File diff suppressed because it is too large Load diff