Skip to content

性能优化的建议 #34

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

Open
quijoo opened this issue Feb 16, 2024 · 4 comments
Open

性能优化的建议 #34

quijoo opened this issue Feb 16, 2024 · 4 comments

Comments

@quijoo
Copy link

quijoo commented Feb 16, 2024

推理框架

以前做过一个类似的,开着游戏的情况下 RTX2060 使用 Intel OpenVINO 推理框架比 tensorRT 和 onnx 快一倍。

截屏

jsmpeg-vnc, 我使用这个方法截屏速度非常快(截取屏幕中心320x320 的图甚至超过 DXGI, 不确定是不是捕获到了重复的帧)

关于一帧定位的问题

转动一弧度需要移动的像素 = 游戏内水平转动一周移动的像素 * (2pi / 360) * 游戏内灵敏度 * ADS

可以人工写脚本二分的测量出 游戏内水平转动一周移动的像素

通过你 README.md 中的图(3D版本)计算得到角度就能计算需要移动的像素量。

@EthanH3514
Copy link
Owner

非常感谢你的建议,我会尝试你的方法

@quijoo
Copy link
Author

quijoo commented Feb 16, 2024

🙈 相互学习了,也是看到这个仓库才知道可以用 PID 控制鼠标移动,之前就是随便写的平滑方法效果很不好。

@laugh12321
Copy link

laugh12321 commented May 7, 2024

@EthanH3514 毛遂自荐一下,可以使用TensorRT-YOLO来进行模型的推理,支持C++和Python,以及全系列YOLO检测模型。

@AlwaysZxD
Copy link

推理框架

以前做过一个类似的,开着游戏的情况下 RTX2060 使用 Intel OpenVINO 推理框架比 tensorRT 和 onnx 快一倍。

截屏

jsmpeg-vnc, 我使用这个方法截屏速度非常快(截取屏幕中心320x320 的图甚至超过 DXGI, 不确定是不是捕获到了重复的帧)

关于一帧定位的问题

转动一弧度需要移动的像素 = 游戏内水平转动一周移动的像素 * (2pi / 360) * 游戏内灵敏度 * ADS

可以人工写脚本二分的测量出 游戏内水平转动一周移动的像素

通过你 README.md 中的图(3D版本)计算得到角度就能计算需要移动的像素量。

ADS指的是

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants