XGPU 云游戏如何稳定 1080p 画质?

2022-11-18 13:15:21 +08:00
 YYP

上班摸鱼的时候试了试 XGPU 的云游戏,延迟不错,但是画质一直是 720p ,流量锁定在 1.6M 左右。仔细研究了下,发现是通过浏览器的 navigator.connection 来检测网络状况:

isLowBandwidthConnection() {
  var e, t, n, r, a, i;
  if (!navigator.connection)
    return !1;
  if (navigator.connection.rtt && navigator.connection.rtt >= 100 && navigator.connection.downlink && navigator.connection.downlink <= 10)
    return null === (t = null === (e = this.options) || void 0 === e ? void 0 : e.logger) || void 0 === t || t.info("Low bandwidth connection detected", { rtt: navigator.connection.rtt, downlink: navigator.connection.downlink }), !0;
  if (navigator.connection.effectiveType && ["slow-2g", "2g", "3g"].includes(navigator.connection.effectiveType))
    return null === (r = null === (n = this.options) || void 0 === n ? void 0 : n.logger) || void 0 === r || r.info("Low bandwidth connection detected", { effectiveType: navigator.connection.effectiveType }), !0;
  const o = navigator.connection.type;
  if (o) {
    const e = 3 === o || 4 === o || /^[23]g$/.test(o);
    return e && (null === (i = null === (a = this.options) || void 0 === a ? void 0 : a.logger) || void 0 === i || i.info("Low bandwidth connection detected", { code: o })), e
  }
  return !1
}

所以简单粗暴的:

Object.defineProperty(window.navigator, 'connection', {
  get: function () {
    return {onchange: null, effectiveType: '4g', rtt: 50, downlink: 10, saveData: false}
}

发现并不行,各位有没有什么好办法?

小技巧: 无需加速器玩 XGPU 云游戏:浏览器安装插件 X-Forwarded-For Header,添加一个韩国 ip ,比如:14.95.33.210 ,即可无需加速器玩云游戏了,方法来自:链接

2776 次点击
所在节点    游戏
5 条回复
DoitsQ
2022-11-18 14:00:01 +08:00
感谢分享
qinxi
2022-11-18 14:24:44 +08:00
能不能直接让 isLowBandwidthConnection 返回!1 可以不
liulicaixiao
2022-11-18 19:35:35 +08:00
没有账号看不见帖子,楼主能分享一下详细的操作吗谢谢
YYP
2022-11-19 09:56:22 +08:00
@liulicaixiao 具体的方法就是:无需加速器玩 XGPU 云游戏:浏览器安装插件 X-Forwarded-For Header ,添加一个韩国 ip ,比如:14.95.33.210 ,即可无需加速器玩云游戏了。写得很清楚了
jie15879965
2022-11-22 16:24:33 +08:00
支持一下,看来公司还需要放个🎮

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/896191

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX