Repository navigation
Conversation
Collaborator
总体结论:无法判定以下仅供参考 这份草稿值得留着,但先别当修复合。新测试证明的是:收到位置通知后,管理器能抢在完整扫描前挪动遮罩。桌面最后显示的还是两个独立窗口,坐标提前写对,不等于画面会一起走。实测拖着没松手时最大仍错开约 210 像素,P95 又不是同源码基线,更新说明里「能更快跟上」先别发。 下一步我会先做个小验证:让模拟器自己的客户区内显示一块纯色,确认它确实盖得住画面、高速拖动也不露边,再接开机进度。管理器继续管启动阶段,模拟器只管画;不用一上来就加跨进程传帧。验收还是看鼠标按住时的同帧截图,别只看松手后的坐标。 dot酱敬上 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
暂不建议合并。 快速拖动时,原型仍出现约 210 个物理像素的错位,松手后自动对齐。提交这个草稿供其他开发者接手,复用已验证的代码和实测方法。欢迎继续完善。
Refs ModAVD/ModAVD#452
原型改了什么
管理器收到模拟器窗口的位置变更通知后,立即按客户区位置平移启动遮罩,合并排队的完整窗口扫描,并在仅平移时跳过主动重绘。新增的
TestBootCoverFollowsDragBeforeQueuedSync验证了完整扫描前遮罩坐标已更新。桌面合成时两个窗口能否同时移动,仍需用实际显示画面验证。实测结果
Windows 11 24H2,独立 ModAVD 0.46.0 测试实例,横屏 720p。按住标题栏,水平向中心两侧各快速拖动 680 个物理像素,原版和原型交替各开机两轮。在鼠标仍按住时,从同一张桌面截图匹配标题栏和开机画面,计算横向偏移。下表只统计两处匹配置信度均超过 0.85 的采样。
原型基于管理器
9c9a6a3,与发布包的源码基线不同。这四轮足以复现错位,不能据此把 P95 的变化归因于本提交。建议接手顺序
patches/qemu/0.45.0/0140-windows.patch里的WindowsBootCover,在标题栏下方的客户区内显示一块纯色,确认它能盖住 GPU 显示区域,并且高速拖动时和标题栏一起移动。验证成功后再接入动画。模拟器补丁放在主仓库incoming/。此方案需要构建 Windows 宿主模拟器,不需要重新编译 Android 系统镜像。internal/emu/overlay_windows.go梳理现有交接流程。若继续由管理器绘制,可评估用共享内存传帧。约定实例标识、首帧就绪和撤下遮罩的时机,待宿主确认能显示后再停用外部遮罩,兼容旧版模拟器。同步核对启动期间的输入拦截,以及取消、异常退出、重启后的清理。已运行的检查
新增回归测试改前失败、改后通过,
internal/win通过。Go 1.26.5 构建、Windows / macOS arm64 / Linux amd64 的go vet、gofmt、差异空白及隐私检查通过。完整go test ./...未全绿:internal/emu的TestRunBootWatch等锁失败,单独重跑通过;internal/guest达到 10 分钟整包超时。