Align AVA2 Windows behavior and improve mobile touch interactions
This commit is contained in:
@@ -1762,3 +1762,172 @@ P1, visible gameplay:
|
||||
- SafeBoxWrongPassword does not call `OnSafeBoxError`;
|
||||
- background Create/DeleteTargetEffect (shop and location markers);
|
||||
- server commands StoneDetect and Start/StopStaminaConsume.
|
||||
|
||||
|
||||
### 2026-10-13 Module behavior parity: first repair batch
|
||||
|
||||
This is a targeted behavior repair after updating to client HEAD 31c5b3dd, not a claim of full Windows equivalence. See [the per-module audit](WINDOWS-MODULE-AUDIT-2026-10-13.md) for all 46 modules, source paths, reviewed scope and remaining work. The audit scripts now inspect src/scripting and fail instead of reporting an empty source set. Method coverage is complete, but 71 constant-return candidates and unreviewed behavior remain.
|
||||
|
||||
Fixed SMS and enabled 67-attribute/calendar/CatchKing senders; warehouse row capacities and original open/error/money/batched refresh callbacks; stamina start/stop/frame accumulation and mobile callbacks; PvP/safe-area queries and shared attack eligibility; casting cooldown using point 21 instead of movement point 19; TextureChange and original per-texture scale/offset coordinates. Added windows_behavior_test with literal wire fixtures, state/callback and terrain checks. Corrected obsolete forest tests to the source's forced full LOD and full-bound frustum culling.
|
||||
|
||||
Desktop build and all 60 CTests pass. ASan/UBSan windows_behavior passes. Packet audit compares 395 constants with zero mismatch. No live-server or Android-device test, no Windows process output oracle. Five Python baseline hash differences predate this batch in the pulled HEAD; original reference C++ and the shared SDK were not changed. Pending: guild mark connection/cache; target/StoneDetect effects; motion queues and advanced skills; terrain splat/shadows/fog/environment; Windows NO_WIND/static-lighting vs current tree rendering (leaf rocking needs separate handling); adapt necessary collision/GPU changes from the preserved pre-pull stash to the new layout. Older backlog descriptions about damage-number queues, missing network horse actors, LookAt and MarkBox_Load are superseded by the linked audit.
|
||||
|
||||
|
||||
### 2026-10-13 Windows behavior parity: target effects, StoneDetect, tree lighting
|
||||
|
||||
Restored the missing background calls in target-create/update/delete receive handlers. Background now owns target effect instances, follows actual actor positions, converts global coordinates using MapOutdoor BasePosition, defers zero-height locations, and cleans its instances/bindings on deletion and map changes. Preserves first-insert actor bindings and the original shared reservation resource rule. Removes stale special-effect ID associations so deleted/recreated targets can follow instead of leaking. StoneDetect now selects the four original assets and converts its compass angle; invalid input does not spawn. SpeedTree tree/frond/leaf commands now disable dynamic lighting as WRAPPER_USE_STATIC_LIGHTING requires, preserving vertex diffuse colors.
|
||||
|
||||
See [second-batch details](WINDOWS-TARGET-EFFECTS-2026-10-13.md) and verification logs in build/verification/windows-target-effects-2026-10-13. Expanded windows_behavior tests cover received packet fragments, nonzero map bases, draw positions, following and ownership lifecycle; forest tests cover static lighting. Full Windows/Android visual parity remains unverified. Still pending: guild mark transfer/cache, advanced motion and skills, terrain shading/fog/splat/environment, tree wind-method separation and prior collision/GPU integration adaptation. Target effects still depend on the replacement effect renderer and current terrain-only height query.
|
||||
|
||||
Validation: desktop full build and CTest 60/60 passed (52.67 s); final expanded behavior/forest tests 2/2 passed (1.75 s), ASan/UBSan 2/2 passed (3.17 s). git diff --check passed; no new upstream reference changes and the shared SDK is clean.
|
||||
|
||||
|
||||
### 2026-10-13 Windows terrain parity: map settings, culling and water grid
|
||||
|
||||
Restored HeightScale through initial and streamed terrain loads and water vertices; TerrainVisible now independently gates terrain drawing. Reset per-map settings and texture/UV caches at map load. The compatibility fallback block entry now uses the same streaming loader instead of a stale-origin raw path. Valid camera culling no longer falls back to an uncullable whole-map draw. Water starts at its block origin, uses the map height scale without the invented -200 bias, draws every valid cell (including odd rows/columns) and skips -1 layers.
|
||||
|
||||
[Third-batch source comparisons and regression cases](WINDOWS-TERRAIN-SETTINGS-2026-10-13.md) document retained developer-map defaults and malformed-input boundaries. background_test covers 4×1 streaming, heights, pointers, per-map vs runtime visibility, reset, culling, sparse water and bad scale. ViewRadius patch allocation, true LOD, shadow/fog/splat, water depth alpha/material/animation and ambient sound remain outstanding; this is not visual equivalence. Other backlog: guild mark transfer/cache, advanced actors/skills, tree wind separation and collision/GPU adaptation. No reference/server/SDK changes or live-server/device proof.
|
||||
|
||||
Validation: full desktop build and 60/60 CTests passed (52.49 s). ASan/UBSan background + windows_behavior 2/2 passed (1.51 s); SDK/client C++ instrumented, Python C dependency not equally instrumented. git diff --check passed.
|
||||
|
||||
|
||||
### 2026-10-13 Windows SpeedTree parity: WIND_NONE vs leaf rocking
|
||||
|
||||
Client forest/model now default to no branch/frond/leaf-center deformation using identity wind matrices, matching WRAPPER_USE_NO_WIND. Empty matrices cannot mean no wind because the SDK synthesizes it. Leaf pivot rocking and camera-facing placement remain active. Explicit SetCpuWindEnabled(true) / the final BuildDrawCommands cpuWind argument preserves optional CPU wind. The background forest now uses accepted game-frame dt instead of fixed 0.033; invalid/overflowing forest time steps retain prior state.
|
||||
|
||||
[Fourth-batch source comparison and limits](WINDOWS-SPEEDTREE-WIND-MODE-2026-10-13.md) distinguish completed mode separation from still-approximate leaf amplitudes, normalized strength and original per-tree creation/environment propagation. Added actual draw/pivot checks under yaw/scale and adversarial custom matrices, mode toggling, stable fronds/trunks and background frame-clock comparisons. No SDK/reference/server modifications. Random generation, exact leaf/DLL values, collision/GPU adapter migration, guild marks, advanced actors/skills and remaining terrain shading continue in the backlog.
|
||||
|
||||
Validation: full desktop build and CTest 60/60 passed (49.73 s); ASan/UBSan forest/background/windows_behavior 3/3 passed (2.38 s). Method audit: 46 modules, no missing methods; packet audit: 395 constants, zero differences. No Windows or Android dynamic parity proof.
|
||||
|
||||
|
||||
### 2026-10-13 Windows player motion parity: emotion request, fishing and digging
|
||||
|
||||
Restored player.ActEmotion's alive-target /kiss request and original NEED_TARGET callback, and IsActingEmotion's narrow KISS/FRENCH_KISS motion-index query (not all emotes). RecvFishing now drives the existing once/loop motion queue and fish emoticon, gates STOP/REACT on actual fishing WAIT/REACT, and preserves main-only failure callbacks. Removed the packet-flag stand-in: cancellation and fish messages query current motion data. RecvDigMotion faces an existing target and queues exactly the received count, while missing targets do not suppress digging.
|
||||
|
||||
[Source comparisons and precise limits](WINDOWS-PLAYER-MOTION-2026-10-13.md) retain pending dual-emotion approach/TCP locking and fishing water target/blend timing. New asset-backed player_motion uses temporary MSA/race data with original read-only model/wait GR2 to verify transitions, eight kiss queries and fragmented/repeated DIG; it explicitly skips if resources are absent, but ran and passed here. Full build and CTest 61/61 passed (31.98 s); ASan/UBSan windows_behavior + player_motion 2/2 passed (1.53 s). Static method and packet audits remain zero-mismatch; git diff --check passed. No SDK/reference/server changes or Windows/Android visual equivalence proof. Guild marks, advanced skills/dual motions, terrain shading and exact tree generation/leaf values remain outstanding.
|
||||
|
||||
|
||||
### 2026-10-13 Windows dual-emotion parity: scheduling, approach and roles
|
||||
|
||||
Replaced server-command local pair pushes with a VID-based dual scheduler: 500ms clock deadline, requested 100-unit endpoint, far approach then mutual facing and job-specific once motions. Preserved MAKELONG high/low assignment (slap sender HIT, receiver HURT). Pending main as either participant blocks manual movement/attack; native move target/direction entry points cannot bypass the lock. Kiss/slap local movement stays locked by current motion. TCP movement packets are deferred instead of discarded and resume after permission; deletion/clear releases state. Server clock callback and existing deterministic test clock cover uint32 rollover.
|
||||
|
||||
[Sixth-batch details and remaining differences](WINDOWS-DUAL-EMOTION-2026-10-13.md) explicitly retain root motion/blend/collision and unified TCP scheduling gaps, plus conservative rejection of self/overlapping pairs and safe coincident coordinates. Extended player_motion exercises delay, approach, job/role mapping, input recovery, queued movement, both main roles and removal. No reference/SDK/server modifications or visual equivalence proof.
|
||||
|
||||
Validation: full desktop build and CTest 61/61 passed (50.91 s); ASan/UBSan windows_behavior/player_motion 2/2 passed (1.47 s). Active method audit 46 modules and mapped packet audit 395 constants remain zero-mismatch. git diff --check passed; no new reference changes or shared SDK edits.
|
||||
|
||||
|
||||
### 2026-10-13 Windows motion parity: weighted variants and playback speed
|
||||
|
||||
Restored BYTE percentage selection for all motion modes, including the original first-entry fallback for underfilled weights. Selected GR2 and MSA metadata now stay together; queued motions select only at activation and LOD uses the selected file. Added explicit C++ speed overloads retained in queued nodes while preserving existing native attack-speed behavior. Network body and mount creation/updates now propagate movspd/100 to WALK/RUN; running speed changes restart the loop. Zero speed stays zero and >1100 clamps to zero, including main input movement.
|
||||
|
||||
See [seventh-batch comparison and limits](WINDOWS-MOTION-VARIANTS-SPEED-2026-10-13.md). Asset-backed player_motion tests enumerate all 100 selection values, malformed totals, metadata/clip identity, immediate/queued speeds and live network speed changes. Mount propagation is source-reviewed without a dedicated mount fixture. Platform RNG sequence, skeletal blending, blend-overlap timing, root motion, special NPC/polymorph speed rules and full TCP scheduling remain pending. No SDK/reference/server changes.
|
||||
|
||||
Validation: full desktop build succeeded; CTest 61/61 passed (49.58 s); ASan/UBSan player_motion/windows_behavior/attack_combo 3/3 passed (3.62 s). No Windows/Android dynamic or visual equivalence proof.
|
||||
|
||||
|
||||
### 2026-10-13 Windows attack speed: zero, overflow and binding time
|
||||
|
||||
Network creation/RefreshState/updates and mount creation/updates now clamp raw attack speed >1100 to zero and normalize by 100, preserving zero instead of replacing it with normal speed. Actor speed storage accepts finite nonnegative values; bound attacks retain their current ratio until a new attack binds, matching the original setter and elapsed-time calculation. Regressions cover raw boundaries including UINT32_MAX, mount storage, zero-speed attack freeze, next-attack recovery and unchanged current-attack speed.
|
||||
|
||||
See [eighth-batch comparison](WINDOWS-ATTACK-SPEED-2026-10-13.md). The AVA2 reference disables ENABLE_FAST_MOB_MOVE_SPEED; its guarded NPC caps are not missing active features. Outstanding: overflow detection queue, polymorph type/mode and 1.1-second scaling, bone blending, root motion and full TCP scheduling. No reference/SDK/server changes or runtime visual parity claim.
|
||||
|
||||
The full suite exposed intermittent inventory_touch shutdown failure after its completion marker. macOS crash frames identify preview-manager static destruction releasing an image after the resource cache died. Added CRenderTargetManager::Destroy and call it during PythonRuntime teardown before image pools/resources, following Windows PythonApplication::Destroy. Added weak ownership/index lifecycle regression; retained initial failure logs.
|
||||
|
||||
Final full build succeeded; CTest 61/61 passed (42.78 s). Instrumented four-test regression passed (10.88 s), inventory_touch repeated three times passed (21.60 s), and the preview-image use-after-free disappeared. Recoverable UBSan diagnostics remain in unmodified Singleton offset calculation, unaligned reads and font color conversion; process success does not establish sanitizer-clean code. Detailed logs retain these findings for follow-up. Method/packet audits: 46 modules with no missing methods, 395 mapped constants with no mismatch. git diff --check passed; SDK/reference unchanged.
|
||||
|
||||
|
||||
### 2026-10-13 Strict UBSan and polymorph motion parity
|
||||
|
||||
Removed invented-address singleton offset arithmetic; actual base-subobject registration plus compiler casts preserves multiple inheritance. Font RGB now retains valid Win32 truncation and uses explicit ARGB packing, with documented finite/clamped input boundaries. Packed sockets use memcpy in inventory/warehouse/switchbot paths; packed attribute values are materialized before pair reference forwarding. Regression tests cover nonzero singleton base offsets and exact font colors.
|
||||
|
||||
Restored TYPE_POLY or PC race>=8 classification, GENERAL mode, base-variant interception without RNG and duration/1.1 speed scaling; ordinary loops retain random selection and unscaled explicit speed. Network poly shape zero and PC-poly sash rejection follow Windows. Synthetic ordinary-PC motion fixtures now use playable race indices 1/2. See [ninth-batch scope and remaining work](WINDOWS-UBSAN-POLYMORPH-2026-10-13.md).
|
||||
|
||||
Strict ASan/UBSan four-test regression with halt_on_error=1 passed (11.89 s), including inventory teardown; detailed output contains no sanitizer diagnostics on those paths. Python C dependency is not equally instrumented. Remaining modules and unreviewed paths are not declared complete; no SDK/reference/server edits or Windows/Android/live-server dynamic parity proof.
|
||||
|
||||
Full desktop build and CTest 61/61 passed (50.12 s). Subsequent test-only strengthening checks literal odd-aligned socket bytes and a negative attribute value: native targeted test passed (1.23 s), strict sanitizer targeted test passed (2.05 s). Active method inventory 46 modules/zero missing, packet audit 395 constants/zero mismatches; git diff --check passed.
|
||||
|
||||
|
||||
### 2026-10-13 Windows skill permission and toggle requests
|
||||
|
||||
Restored pre-send actor/observer/poly/dress/pickaxe permissions, passive rejection, MSA LoopCancelEnable cancellation, active AVA2 riding slot 107 threshold and source mount-level cases. Added horse-skill mismatch and attack-skill safe-zone callbacks; blocked paths emit no packets or cooldown events. Ordinary active toggles send the skill-slot argument; active standing toggles retain the separate original zero-argument branch before generic permissions. Animal/dress weapon constraints and repeated-armor checks now use requested PART_MAIN instead of poly render shape zero.
|
||||
|
||||
See [tenth-batch source comparisons and limitations](WINDOWS-SKILL-PERMISSION-2026-10-13.md). Literal AVA2 CG233 fixtures cover acceptance/refusal and both toggle paths; asset-backed actor tests cover cancel flags and stun priority. Static mount-case audit compares all 100 active cases with zero differences. Strict ASan/UBSan four-test regression with halt_on_error=1 passed (10.23 s). No SDK/reference/server modifications; remaining skill conditions, targets/movement, guild marks, terrain and tree work are not declared complete.
|
||||
|
||||
Final full desktop build succeeded and CTest 61/61 passed (49.71 s). Strict sanitizer detailed output has no diagnostics on executed paths. Method audit 46 modules/zero missing, packet audit 395 mapped constants/zero mismatch; git diff --check passed. Python C dependency not equally instrumented; no live-server or device proof.
|
||||
|
||||
|
||||
### 2026-10-13 Windows skill costs, learned level and equipment conditions
|
||||
|
||||
Restored bottle scans, fishing-mode restriction, active/default learned-level gate, weapon masks and bow-arrow condition. HP/SP use source point indices 5/7 and Win32 formula truncation; equal resources pass, client does not deduct ahead of server. Preserve source zero-cost refusal/chat, -1 SP sentinel, partial-SP flag, summon exemption and DASH/CHARGE cooldown/resource exceptions. Skill failure/cooldown/arrow callbacks now go to the network game-phase window, verified with distinct player and phase windows.
|
||||
|
||||
See [eleventh-batch evidence and limitations](WINDOWS-SKILL-COST-2026-10-13.md). Real SkillDesc/SkillTable inputs cover normal/exception boundaries and literal CG233 requests. Targets, multi-target/moving skills, right-button mode, bone blending/root motion, guild marks, terrain and tree work remain pending; no reference/SDK/server changes or live-server/device parity claim.
|
||||
|
||||
Final full build and CTest 61/61 passed (47.53 s); strict ASan/UBSan four-test regression passed (11.84 s) without diagnostics on executed paths. Method inventory 46 modules/zero missing; packet audit 395 mapped constants/zero mismatch; git diff --check passed. Earlier intermediate runs retained in the verification directory; final logs include the window-routing correction.
|
||||
|
||||
|
||||
### 2026-10-13 Windows skill target resolution
|
||||
|
||||
Separated UI selection from local skill target: no-target skills send zero; alive/corpse lookup, picked fallback, alliance/self and enemy safe/attack checks now follow the reviewed source branches. Added front auto-search's distance-varying cone and capped-distance/VID ordering, actual fly target binding and horizontal facing. Failed animation binding cannot send packets/cooldown. Restored __UseSkill's second IsUsingSkill lock even when the lower actor predicate allows LoopCancelEnable; asset-backed regression proves that distinction.
|
||||
|
||||
See [twelfth-batch scope and limitations](WINDOWS-SKILL-TARGET-2026-10-13.md). Static/fixture tests cover literal target/use packets, native picked state, target deletion/death and roles. Source range reservation/approach, 1000/2000ms selection throttling/UI targeting effects, fan/circle/random fly targets, moving skills and blending remain pending. No SDK/reference/server changes or Windows/Android/live-server visual proof.
|
||||
|
||||
Final full build and CTest 61/61 passed (48.43 s); strict four-test ASan/UBSan passed (11.96 s) with no diagnostics on executed paths. Subsequent test-only deletion, capped-sort ties and 2000/2001 distance boundaries passed native (1.29 s) and strict sanitizer (2.26 s). Method inventory 46 modules/zero missing; packet audit 395 mapped constants/zero mismatch; git diff --check passed.
|
||||
|
||||
|
||||
### 2026-10-13 Windows skill range and reserved approach
|
||||
|
||||
Added targetRange + point34*100, source >= range reservation and strict arrival with the 10-unit margin, moving-target following and permission/resource rechecks. Restore source huge race2493 correction, enemy ATTR_BLOCK check, zero-range exemption and charge's first target-zero send/cooldown followed by DASH completion. Frame pipeline processes the reservation; locks pause owned movement, manual input/deletion/main changes cancel. Weak actor identity prevents VID reuse inheriting a cast. Auto hunt does not overwrite the reserved approach. Formal skill callback (-1) no longer invokes the app's preview cooldown/effects.
|
||||
|
||||
See [thirteenth-batch source comparisons and limits](WINDOWS-SKILL-RANGE-2026-10-13.md). Tests cover 190/189 boundaries, follow/reselect/one-shot, stun/revive, input/lifecycle cancellation, friendly approach, range bonus, blockers and charge bytes. Root motion, exact movement/stop packet timing, full right-button/standing-toggle reservation interactions, target hold/UI lifecycle and multi-target remain pending. No SDK/reference/server changes or Windows/Android/live-server visual proof.
|
||||
|
||||
Final full build and CTest 61/61 passed (46.68 s); strict four-test ASan/UBSan passed (8.48 s) without diagnostics on executed paths. Method inventory 46 modules/zero missing; packet audit 395 mapped constants/zero mismatch; git diff --check passed. Python C dependency not equally instrumented. Preview callback guard is compiled/static-checked without app visual proof.
|
||||
|
||||
### 2026-10-13 第十四批:技能追加飞行目标
|
||||
|
||||
已接通 FAN/CIRCLE 候选选择、距离/VID 排序、MSM 防御球位置与严格 3D 范围、原版随机算法的 8000 锥形补足、CG53→动作绑定→CG233 顺序和现有 Actor 队列。新增报文回归与真实 GR2/MSA 队列消费/主目标恢复测试。异常数量上限保护为明确偏差;精确模型中心、骨骼矩阵/附件生命周期、持续追踪和移动技能仍未完成。详见 [第十四批记录](WINDOWS-SKILL-FLIGHT-2026-10-13.md)。
|
||||
|
||||
本批验证:桌面完整构建成功,61/61 CTest(33.73 秒);四项严格 ASan/UBSan(10.85 秒)通过,无执行路径诊断。方法与协议静态审计通过。未提交/推送本轮修改。
|
||||
|
||||
### 2026-10-13 第十五批:飞行物目标与生命周期
|
||||
|
||||
接通 FLY/服务器索引飞行物的对象追踪、对象消失转最后位置与安全实例身份、严格线段命中、实际飞行距离退出,删除五秒误报命中。恢复 MSF 初始旋转及速度/加速度积分、重力、homing 延迟/半角规则、主目标一次性穿透及受击动作。新增独立飞行回归和真实 GR2/MSA 回调链测试;背景/其他怪物碰撞、视觉附件、shake 和精确包围中心仍未完成。详见 [第十五批记录](WINDOWS-FLYING-LIFECYCLE-2026-10-13.md)。
|
||||
|
||||
同批继续恢复 SpreadingFlag 的三次原版随机调用和初始旋转顺序;固定种子验证独立计算轨迹、速度/加速度一致旋转及关闭时随机序列不变。
|
||||
|
||||
本批最终验证:完整构建成功,62/62 CTest(57.66 秒);五项严格 ASan/UBSan(14.25 秒)通过,无执行路径诊断。静态方法与协议审计通过。SDK/参考/服务器未修改,本轮尚未提交或推送。
|
||||
|
||||
### 2026-10-13 第十六批:飞行物场景碰撞
|
||||
|
||||
已接通 BODY/DEFENDING 分类、演员双轨迹检测、发射者身份排除、额外角色穿透去重、回调/碰撞优先级、严格地形高度和当前物体三维 OBB 代理;游戏入口借用当前场景,地图高度使用多区块查询。新增合成 MSM/移动演员回归及真实 GR2 物体代理测试。原版 culling 首候选顺序、静态完整碰撞图元、树木碰撞、骨骼/部件历史仍未完全对齐。详见 [第十六批记录](WINDOWS-FLYING-COLLISION-2026-10-13.md)。
|
||||
|
||||
本批最终验证:完整构建成功,62/62 CTest(54.71 秒);五项严格 ASan/UBSan(12.49 秒)通过,无执行路径诊断。方法与协议审计通过。SDK/参考/服务器未修改,本轮尚未提交或推送。
|
||||
|
||||
### 2026-10-13 第十七批:飞行附件与受击震动
|
||||
|
||||
已接通多 AttachData、独立效果与尾迹、angular rotation、LINE/MULTI/SINE/EXP 偏移、全局矩阵与完整清理,以及 OnShootDamage 的 100ms 图形震动。主体/骨骼/飞行中心使用图形偏移,逻辑坐标和碰撞球不受影响。修正 CG51 图形 Y 符号并验证实际默认处理器报文字节。真实 GR2/MSA 与 MSE/尾迹绘制回归已加入;CRT 精确随机序列、第一帧/粒子时序、近战全部受击流程和 GPU 逐帧画面仍未对齐。详见 [第十七批记录](WINDOWS-FLYING-VISUAL-2026-10-13.md)。
|
||||
|
||||
本批最终验证:完整构建成功,62/62 CTest(53.47 秒);五项严格 ASan/UBSan(13.20 秒)通过,无执行路径诊断。方法与协议审计通过。SDK/参考/服务器未修改,本轮尚未提交或推送。
|
||||
|
||||
### 2026-10-13 第十八批:飞行尾迹几何与衰减
|
||||
|
||||
恢复六顶点四三角形尖角尾迹、相机位置参与的方向基底、逐段深度排序、原色恒定 alpha、宽度衰减、原版 UV、alpha test、小尺寸参数及严格过期边界。扩展固定源公式绘制几何和前批多附件回归。逐段 frustum、继承 GPU 深度状态、首帧绝对时间和相机/浮点动态输出仍未完全对齐。详见 [第十八批记录](WINDOWS-FLYTRACE-2026-10-13.md)。
|
||||
|
||||
本批最终验证:完整构建成功,62/62 CTest(51.52 秒);五项严格 ASan/UBSan(12.55 秒)通过,无执行路径诊断。方法与协议审计通过。SDK/参考/服务器未修改,本轮尚未提交或推送。
|
||||
|
||||
### 2026-10-13 第十九批:尾迹逐段视锥裁剪
|
||||
|
||||
接通 view×projection 六平面、每段中点/最长轴半长球、外侧相切剔除及部分可见保留;标准透视粗球保留原版 FOV 度值直接传 tan 的历史行为。新增边界/相机/透视及历史单位回归,基础几何测试使用明确宽投影。原版全局 frustum 更新时序、非标准投影粗球、浮点逐位和 GPU 深度继承仍待对照。详见 [第十九批记录](WINDOWS-TAIL-FRUSTUM-2026-10-13.md)。
|
||||
|
||||
本批最终验证:完整构建成功,62/62 CTest(50.78 秒);五项严格 ASan/UBSan(12.06 秒)通过,无执行路径诊断。Python C 代码未全部同等插桩。46 模块方法和 395 个映射协议常量审计通过,git diff --check 通过。SDK/参考/服务器未修改,本轮尚未提交或推送。
|
||||
|
||||
### 2026-10-13 第二十批:视锥更新缓存、非标准投影与 GPU 深度继承
|
||||
|
||||
UpdateGame 更新阶段建立缓存,渲染阶段尾迹读取该快照。相机/投影设置不自动刷新缓存,正交及自定义矩阵继续使用最近透视元数据计算原版粗球。接通 Python 正交投影;尾迹继承深度开关/写入并使用 LESS,硬件管线键及软件光栅器同步支持;加法混合不再强制关闭软件深度写入。新增快照/投影/软件回归和真实 GPU 像素回读。Windows 浮点逐位、全局相机切换、SDL 几何备用后端无深度缓冲等边界详见 [第二十批记录](WINDOWS-TAIL-STATE-2026-10-13.md)。
|
||||
|
||||
本批最终验证:完整构建成功,62/62 CTest(62.48 秒);六项严格 ASan/UBSan(17.43 秒)通过,包含实际执行的 GPU 回读,无执行路径诊断。Python C 代码未全部同等插桩。方法/协议审计与 git diff --check 通过。SDK/参考/服务器未修改,本轮尚未提交或推送。
|
||||
|
||||
### 2026-10-13 移动交互:浮动摇杆、技能手势及场景点击
|
||||
|
||||
参考 d2r-mobile 的交互思路,移除闲置固定摇杆,真实落点与绘制中心分离,补齐技能独立多指归属、拖动方向提示、按住遵守冷却重试、最近敌人选择、完整快捷按钮热区及物品拖拽抬高。增加 NPC/入口和掉落物热区、接近交互、失焦取消与实例/物品 generation 防复用。保留原版双击/长按物品面板及报文,新增真实 HUD、库存和目标/技能/NPC 字节测试。详见 [移动交互调整](MOBILE-INTERACTION-2026-10-13.md)。真机多指、精确模型点击体、完整寻路和技能范围预览仍待验证/实现。
|
||||
|
||||
本批最终验证:完整构建成功,62/62 CTest(63.67 秒),移动专项 4/4,严格 ASan/UBSan 4/4(19.86 秒),无执行路径诊断。Python C 代码未全部同等插桩。方法/协议审计及 git diff --check 通过。SDK/参考/服务器未修改,尚未提交或推送。
|
||||
|
||||
Reference in New Issue
Block a user