Skip to content

Commit 6a8d0cb

Browse files
committed
fix: uTP crash hanging torrent client, uTP peers not being preferred
feat: increase video buffer [hopefully]
1 parent b079e79 commit 6a8d0cb

File tree

4 files changed

+611
-449
lines changed

4 files changed

+611
-449
lines changed

electron/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "Miru",
3-
"version": "5.5.8",
3+
"version": "5.5.9",
44
"private": true,
55
"author": "ThaUnknown_ <[email protected]>",
66
"description": "Stream anime torrents, real-time with no waiting for downloads.",

electron/src/main/util.js

+7-3
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,14 @@ const flags = [
1212
// safe performance stuff
1313
['enable-features', 'PlatformEncryptedDolbyVision,CanvasOopRasterization,ThrottleDisplayNoneAndVisibilityHiddenCrossOriginIframes,UseSkiaRenderer,WebAssemblyLazyCompilation'],
1414
['disable-renderer-backgrounding'],
15-
// disabling shit, vulkan rendering, widget layering aka right click context menus [I think] for macOS [I think]
16-
['disable-features', 'Vulkan,WidgetLayering'],
15+
// 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
16+
['disable-features', 'Vulkan,WidgetLayering,MediaEngagementBypassAutoplayPolicies,PreloadMediaEngagementData,RecordMediaEngagementScores'],
1717
// utility stuff, aka website security that's useless for a native app:
18-
['autoplay-policy', 'no-user-gesture-required'], ['disable-notifications'], ['disable-logging'], ['disable-permissions-api'], ['no-sandbox'], ['no-zygote'], ['bypasscsp-schemes']
18+
['autoplay-policy', 'no-user-gesture-required'], ['disable-notifications'], ['disable-logging'], ['disable-permissions-api'], ['no-sandbox'], ['no-zygote'], ['bypasscsp-schemes'],
19+
// chromium throttles stuff if it detects slow network, nono, this is native, dont do that
20+
['force-effective-connection-type', '4G'],
21+
// image video etc cache, hopefully lets video buffer more and remembers more images, might be bad to touch this?
22+
['disk-cache-size', '500000000']
1923
]
2024
for (const [flag, value] of flags) {
2125
app.commandLine.appendSwitch(flag, value)

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
"webpack": "^5.91.0",
3131
"webpack-cli": "^5.1.4",
3232
"webpack-dev-server": "^5.0.2",
33-
"webtorrent": "^2.4.11"
33+
"webtorrent": "^2.5.6"
3434
},
3535
"devDependencies": {
3636
"@cloudflare/workers-types": "^4.20240222.0",

0 commit comments

Comments
 (0)