Skip to content

Commit

Permalink
fix: uTP crash hanging torrent client, uTP peers not being preferred
Browse files Browse the repository at this point in the history
feat: increase video buffer [hopefully]
  • Loading branch information
ThaUnknown committed Nov 17, 2024
1 parent b079e79 commit 6a8d0cb
Show file tree
Hide file tree
Showing 4 changed files with 611 additions and 449 deletions.
2 changes: 1 addition & 1 deletion electron/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "Miru",
"version": "5.5.8",
"version": "5.5.9",
"private": true,
"author": "ThaUnknown_ <[email protected]>",
"description": "Stream anime torrents, real-time with no waiting for downloads.",
Expand Down
10 changes: 7 additions & 3 deletions electron/src/main/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
Loading

0 comments on commit 6a8d0cb

Please sign in to comment.