Repository navigation
截图:Aokana 的 BitBlt 画面冻住时改用 PrintWindow - #714
Open
Plastic-time wants to merge 1 commit into
Open
Plastic-time wants to merge 1 commit into
Plastic-time wants to merge 1 commit into
Conversation
…indow Aokana's Unity window gave BitBlt one old picture for the whole session. It is not blank, so it counted as proven, and the scene and box checks compared that picture with itself. A BitBlt picture that stays the same for 3 s is now checked against the screen while the game is in front. Three checks where the screen moved meanwhile, or shows another picture, mark it frozen. The window is then printed like a blind one, under the same 2 s limit, client area only, and the scene probe reuses each print. No vote is taken for a window not drawn at its monitor's DPI (a DPI-unaware game under display scaling) or with most sampled points under MeguLit's own windows. A check that cannot tell waits 2 s. A vote about a picture another reader has replaced meanwhile is dropped.
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.
问题
Aokana(Steam 版,Unity)换场景或收起对话框后,上一句的译文还留在画面上。
这个窗口用 BitBlt 截图时,整局拿到的都是同一张旧画面。它不是空白,所以一直被当成正常画面。场景检测和对话框检测拿这张旧图比,看不出画面已经变了。
改动
在 Aokana 上本地试玩(系统缩放 150%):开局几秒内判出冻结,之后场景检测每 2 秒拿到一帧实时画面,CG 背景变了而对话框还在时不会误收。开场从偏白的画面切到全白时,画面只变了约 20%,像素上分不出,这种情况旧译文要等下一句才换掉。新增
validation/scene-hide.test.cjs用例和--mode-self-test的冻结自检。