-
Notifications
You must be signed in to change notification settings - Fork 3.6k
添加Arm64EC编译配置 #1703
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
添加Arm64EC编译配置 #1703
Conversation
|
支持! |
|
我试了下可以编译运行,就是CPU频率不能变化,固定不动 https://github.com/xgdgsc/TrafficMonitor/releases/download/V1.83/TrafficMonitor.Arm64.zip |
|
我在 xgdgsc@f8cdd6b 实现了较为准确的cpu频率计算 (算法来自 https://stackoverflow.com/questions/61802420/unable-to-get-current-cpu-frequency-in-powershell-or-python/61808781#61808781 ), 跟cpuz比较接近了. 就是不知道这个是将来加入主程序部分还是就在这个里面改比较好, 需要用的可以先替换 |
|
我没有arm设备没办法测试,我想问一下,OpenHardwareMonitorApi仍使用x64编译的话还能正常运行吗,虽然win11 on arm兼容x64程序,但是arm原生的exe可以调用x64的dll吗? |
|
可以,采用arm64ec编译调用就行 |
我把你的那段代码添加进来了,那段代码加到OpenHardwareMonitorApi是不合适的,我把它加到主程序中了,现在关闭硬件监控、Lite版或ARM64EC的时候,将使用PDH的方式获取CPU频率。你试试看现在ARM64EC版本能正常显示CPU频率吗? |
|
试了,可以 |
|
带WoA玩好耶,目前看来一切正常 |
添加Arm64EC编译配置,添加CI脚本。
由于OpenHardwareMonitorApi 使用了CLR,arm64EC不支持,所以OpenHardwareMonitorApi依旧使用x64编译。
Arm64EC只支持143(vs2022)之后的版本,并且只支持win11 on arm。