hexstr / UnityFPSUnlocker

为unity-il2cpp提供在手机上设置FPS的模块
MIT License
356 stars 44 forks source link

[Solved] 3.1在模拟器上出现的问题 → 降级面具解决,自测25.1 #37

Closed kcn3388 closed 1 year ago

kcn3388 commented 1 year ago

模拟器版本:雷电模拟器9 9.0.36

个人推测与 #34 相关 表现为模拟器卡死在第一屏进度条99(即广告页)

图例 ![image](https://user-images.githubusercontent.com/25716090/217703515-461a4c8e-a496-4d30-838b-bad14faae8e9.png)

或者卡死在桌面

图例 ![image](https://user-images.githubusercontent.com/25716090/217703619-f9ad7ca0-cbf4-4536-8b27-ef4efbb39ce7.png)

目前已确认,配置文件global FPS设置为60时不会出现这个问题

hexstr commented 1 year ago

需要日志,等模拟器卡死之后直接用adb拉下来

adb logcat > log.txt

等待30秒,然后把log.txt发给我 我自己设置的是90没遇到过这个问题

kcn3388 commented 1 year ago

需要日志 我自己设置的是90没遇到过这个问题

已确认90没有问题

90的log:

marlin:/ $ logcat -s UnityFPSUnlocker:V
--------- beginning of system
--------- beginning of main
02-09 10:50:46.437  1804  1809 D UnityFPSUnlocker: [UnityFPSUnlocker][x86_64] Initializing...
02-09 10:50:46.438  1804  1809 D UnityFPSUnlocker: [LoadConfig] custom_list: 4
02-09 10:50:46.438  1804  1809 D UnityFPSUnlocker: [LoadConfig] global_cfg:
02-09 10:50:46.438  1804  1809 D UnityFPSUnlocker:      delay: 5 | fps: 90 | mod_opcode: 1
02-09 10:50:46.438  1804  1809 D UnityFPSUnlocker: [Listener::Register] Registered: wd: 1 /data/local/tmp/TargetList.json
02-09 10:50:46.474  1859  1869 D UnityFPSUnlocker: [UnityFPSUnlocker][x86] Initializing...
02-09 10:50:46.474  1859  1869 D UnityFPSUnlocker: [LoadConfig] custom_list: 4
02-09 10:50:46.474  1859  1869 D UnityFPSUnlocker: [LoadConfig] global_cfg:
02-09 10:50:46.474  1859  1869 D UnityFPSUnlocker:      delay: 5 | fps: 90 | mod_opcode: 1
02-09 10:50:46.474  1859  1869 D UnityFPSUnlocker: [Listener::Register] Registered: wd: 1 /data/local/tmp/TargetList.json
--------- beginning of crash

120+的log无法记录,因为会卡启动,模拟器未开启所以无法adb shell进行logcat

adb logcat > log.txt
- waiting for device -

adb devices
List of devices attached
emulator-5558   offline
kcn3388 commented 1 year ago

更新:成功启动以后更改FPS的log:

marlin:/ $ logcat -s UnityFPSUnlocker:V
--------- beginning of main
--------- beginning of system
02-09 11:11:35.336  1754  1756 D UnityFPSUnlocker: [UnityFPSUnlocker][x86_64] Initializing...
02-09 11:11:35.336  1754  1756 D UnityFPSUnlocker: [LoadConfig] custom_list: 4
02-09 11:11:35.336  1754  1756 D UnityFPSUnlocker: [LoadConfig] global_cfg:
02-09 11:11:35.336  1754  1756 D UnityFPSUnlocker:      delay: 10 | fps: 60 | mod_opcode: 1
02-09 11:11:35.336  1754  1756 D UnityFPSUnlocker: [Listener::Register] Registered: wd: 1 /data/local/tmp/TargetList.json
02-09 11:11:35.364  1797  1808 D UnityFPSUnlocker: [UnityFPSUnlocker][x86] Initializing...
02-09 11:11:35.364  1797  1808 D UnityFPSUnlocker: [LoadConfig] custom_list: 4
02-09 11:11:35.364  1797  1808 D UnityFPSUnlocker: [LoadConfig] global_cfg:
02-09 11:11:35.364  1797  1808 D UnityFPSUnlocker:      delay: 10 | fps: 60 | mod_opcode: 1
02-09 11:11:35.364  1797  1808 D UnityFPSUnlocker: [Listener::Register] Registered: wd: 1 /data/local/tmp/TargetList.json
02-09 11:12:33.935  1754  1757 D UnityFPSUnlocker: [LoadConfig] custom_list: 4
02-09 11:12:33.935  1754  1757 D UnityFPSUnlocker: [LoadConfig] global_cfg:
02-09 11:12:33.935  1754  1757 D UnityFPSUnlocker:      delay: 10 | fps: 120 | mod_opcode: 1
02-09 11:12:33.935  1797  1811 D UnityFPSUnlocker: [LoadConfig] custom_list: 4
02-09 11:12:33.935  1797  1811 D UnityFPSUnlocker: [LoadConfig] global_cfg:
02-09 11:12:33.935  1797  1811 D UnityFPSUnlocker:      delay: 10 | fps: 120 | mod_opcode: 1

修改回去不生效

kcn3388 commented 1 year ago

更新:FPS设置为60或90时依旧会无规律卡死

hexstr commented 1 year ago

image 无法复现,建议换模拟器试试 https://cloud.189.cn/web/share?code=yYRfEfmEnM7f

kcn3388 commented 1 year ago

模拟器版本一致,有可能是面具版本问题。你发一下你的面具我再试试?

hexstr commented 1 year ago

@kcn3388 24.1

kcn3388 commented 1 year ago

@kcn3388 24.1

你有删除模拟器root的su文件吗?也有可能是su冲突

hexstr commented 1 year ago

@kcn3388 没有

kcn3388 commented 1 year ago

@kcn3388 没有

已确认是新版面具的问题,25.1可以正常运行,请在readme加上提醒吧() 附25.1面具

@kcn3388 24.1

最旧的就是25.1了吧() 25.1-delta-2.zip

hexstr commented 1 year ago

@kcn3388 所以说模拟器上干嘛要更新magisk,我一直都是用的24.1没出过问题

kcn3388 commented 1 year ago

@kcn3388 所以说模拟器上干嘛要更新magisk,我一直都是用的24.1没出过问题

因为magisk delta没有版本release,默认下到的就是最新版,必须得翻commit记录才能找到旧版()

kcn3388 commented 1 year ago

@hexstr 然后其实还是没有解决,还是会不定期卡死,麻了

hexstr commented 1 year ago

@kcn3388 你不是说模拟器自带了嘛,顺便一提是不是Windows 11

kcn3388 commented 1 year ago

@kcn3388 你不是说模拟器自带了嘛,顺便一提是不是Windows 11

@hexstr win10 22h2 真正的解决方法是模拟器设置60FPS,这样子保证不会寄 但是代价是别的也被限制在60FPS 如果模拟器自带帧率设置为120的话会无规律卡死 144必卡死

hexstr commented 1 year ago

@kcn3388 惨,我在Windows 11上遇到过一次,重启之后就没问题了,看来得换模拟器了

hexstr commented 1 year ago

我这边测试确定是雷电模拟器和magisk冲突了,在模拟器设置里关掉root权限就行,模块还在运作。 证据是把模块关了还是会卡死在开机时的加载