Skip to content

Releases

OrigamiKingRecomp v0.1.0-beta.5

Choose a tag to compare

@WenVil WenVil released this 02 Dec 11:25
87463cc

What's Changed in v0.1.0-beta.5

Upgrade Note: GAMELIB_ID is unchanged — existing players do not need to recompile lasgame_E74395F066FD8CCB.dll. Just replace the extracted files and keep your saves/data folder.

Fixed 3D Lighting Corruption (Dark Areas & Neon-Red Glow)

  • Fixed 3D NVNpackagedTextureLayout Decoding (bh / bd): All 1,664 3D lighting probe volumes (.probe.bntx.zst) across the game use packed block-height/block-depth nibbles (0x20 / 0x30 / 0x40). Previously, layouts with pl > 5 were dropped back to default bh = 3, causing 3D probe slices to misalign/zero out (dark/greenish shadows) and overrun into adjacent R16F buffers (bright neon-red artifacts and NaNs in areas like Picnic Road and battles).
  • Fixed 3D Layer Alignment: Updated tegra_layer_size to align 3D layers by 512 << (block_height_log2 + block_depth_log2).

Stability, Crash (VK_ERROR_DEVICE_LOST) & Memory Leak Fixes

  • Fixed VAMM Unmap GPU Page Fault (0x639... / record.c:585): Removed the 64-entry truncation cap during vamm_unmap_sync and ensured the render queue and in-flight GPU fences fully drain before plat_decommit (VirtualFree MEM_DECOMMIT) releases external-memory host pages.
  • Thread-Safe Deferred Destruction Queue: Added a dedicated mutex (dead_lock) around deferred Vulkan resource destruction and made submit_seq / gc_gen atomic to prevent cross-thread races and premature frees.
  • Expanded Compute Shader Cache (256 → 2048): Fixed g_cs_tab overflow once a session visited more than 256 of the game's 449 unique compute shaders, eliminating cache thrashing and repeated lock contention during longer play sessions.
  • Plugged Object & Pool Leaks: Fixed leaked Vulkan resources on in-place nvnTextureInitialize overwrites, nvnMemoryPoolFinalize, nvnTexturePoolFinalize / nvnSamplerPoolFinalize, and NV12 video planes.
  • Improved GPU Fault Diagnostics: Fixed a disabled VK_EXT_device_fault logging branch and added fault-address lookup (vimp BDA / allocations) plus a recent-operation ring dump on VK_ERROR_DEVICE_LOST.

(Note: Full VRAM LRU eviction for long multi-hour sessions on 4 GB GPUs is planned next for v0.1.0-beta.6.)


v0.1.0-beta.5 更新日志

升级说明: 本版本 GAMELIB_ID 未变更,老玩家覆盖更新后无需重新编译 lasgame_E74395F066FD8CCB.dll,保留原存档与数据目录即可直接启动。

彻底修复 3D 光照异常(局域异常发黑 / 暗绿 / 荧光红过曝)

  • 修复 3D 纹理 NVNpackagedTextureLayout 高低半字节解析(bh / bd):全游戏全部 1,664 个 3D 光照探针体纹理(.probe.bntx.zst)均采用 0x20 / 0x30 / 0x40 布局。此前 pl > 5 会被丢弃并回退至默认 bh = 3,导致探针切片错位归零(野餐之路及战斗场景大面积异常发黑/暗绿)且体积膨胀越界读入相邻 R16F 缓冲(产生高饱和荧光红与 NaN)。
  • 修正 3D 层对齐计算:将 tegra_layer_size 的 3D 层对齐修正为 512 << (block_height_log2 + block_depth_log2)。

GPU 页错误闪退(VK_ERROR_DEVICE_LOST)与内存泄漏修复

  • 修复 VAMM 解映射引发的 GPU Page Fault(record.c:585):取消 vamm_unmap_sync 中 64 项截断上限,并在 plat_decommit 撤回物理页前完整排空渲染线程与在途 GPU Fence,消除外部导入显存被提前撤页导致的页错误崩溃。
  • 修复延迟销毁队列跨线程竞态:为 dead[] 增加专属互斥锁,并将 submit_seq / gc_gen 升级为原子变量,消除游戏线程与渲染线程并发读写引发的提前释放隐患。
  • 扩容 Compute 着色器缓存表(256 → 2048):彻底解决游玩时间变长、触及超过 256 个(全作共 449 个)独立 Compute 着色器后缓存表溢出导致的反复扫描与锁争抢掉帧。
  • 修复多项对象与池泄漏:堵住 nvnTextureInitialize 原地覆写、nvnMemoryPoolFinalize、nvnTexturePoolFinalize / nvnSamplerPoolFinalize 及 NV12 视频平面的资源泄漏。
  • 增强设备丢失诊断:修复 VK_EXT_device_fault 报错分支误屏蔽问题,触发 VK_ERROR_DEVICE_LOST 时自动输出故障地址反查与近期渲染操作记录。

(注:面向 4 GB 小显存长时间游玩的全量纹理 LRU 显存预算回收机制将在 v0.1.0-beta.6 推出。)

OrigamiKingRecomp v0.1.0-beta.4

Choose a tag to compare

@WenVil WenVil released this 28 Nov 05:27

What's Changed in v0.1.0-beta.4

Upgrade Note: GAMELIB_ID is unchanged — existing players do not need to recompile lasgame_E74395F066FD8CCB.dll. Just replace the extracted files and keep your existing saves/data folder.

Fixed Crash When Pressing Minus (-) / Opening Manual

  • Fixed OfflineWeb (0x17) Applet Crash: Fixed an instant AbortImpl -> svcBreak crash when pressing Minus (- / keyboard Backspace) in-game or opening the Manual in Settings (nn::web::ShowOfflineHtmlPage). ILibraryAppletAccessor::PopOutData now returns a valid 0x1010-byte OfflineHtmlPageReturnValue IStorage (and also covers 0x13 Web and 0x0C Controller applets).
  • Prevented Handle & Memory Leaks: Added IStorage reference counting and bounds checks, handled IApplicationFunctions::SetTerminateResult, and released kernel event handles when closing ILibraryAppletAccessor so pressing Minus repeatedly never exhausts the handle table.
  • Expected behavior on PC: On Nintendo Switch, Minus (-) / Manual opens the console's built-in offline HTML web browser. Because that system browser is not emulated on PC, pressing - now plays the button chime and returns directly to gameplay without crashing.

v0.1.0-beta.4 更新日志

升级说明: 本版本 GAMELIB_ID 未变更,老玩家覆盖更新后无需重新编译 lasgame_E74395F066FD8CCB.dll,保留原存档与数据目录即可直接启动。

修复按减号键(-)或打开“说明”立即闪退

  • 修复 OfflineWeb(0x17)系统子应用崩溃:修复了在游戏内按下 -(键盘 Backspace)或在设置中点击“说明”触发 nn::web::ShowOfflineHtmlPage 时,因 PopOutData 返回空数据导致游戏主动 svcBreak 闪退的问题。现按协议返回合法的 0x1010 字节 OfflineHtmlPageReturnValue IStorage(同步覆盖 0x13 Web 与 0x0C Controller 同类子应用)。
  • 修复句柄与内存泄漏:为 IStorage 补齐引用计数与越界防护,补充 IApplicationFunctions::SetTerminateResult 处理,并在关闭 ILibraryAppletAccessor 时回收内核事件句柄,连续多次按 - 不会耗尽句柄表。
  • PC 端行为说明: 原版 Switch 按 - 键或点“说明”调用的是主机内置离线网页浏览器查看电子手册;PC 端不模拟该系统浏览器组件,现改为播放按键提示音后直接安全返回游戏,不影响游戏内任何正常流程与提示。

OrigamiKingRecomp v0.1.0-beta.3

Choose a tag to compare

@WenVil WenVil released this 28 Nov 04:29

What's Changed in v0.1.0-beta.3

Upgrade Note: GAMELIB_ID is unchanged — existing players do not need to recompile lasgame_E74395F066FD8CCB.dll. Just replace the extracted files and keep your saves/data folder.

Fixed Cold-Start "Black Screen with Audio" Across AMD & NVIDIA GPUs

  • Full Blocking Startup Shader Precompilation Screen: On first launch with an empty shader cache, the app now displays an animated multi-language progress screen and finishes compiling & saving all 748 shipped pipeline variants + all 449 unique compute shaders before initializing audio or starting the intro movie (one-time ~30–120 seconds depending on CPU/GPU; ~25s on an i5-12450H + RTX 3050). Subsequent launches hit the disk cache and boot in ~5–6 seconds without showing the screen.
  • Eliminated Background Queue Starvation & Compute Stutters: Removed background cold-compute flooding at boot, added below-normal priority + core reservation for compiler workers so the window stays responsive (~60 FPS UI), and split runtime shader jobs into a high-priority lane. Precompiling all 449 unique compute shaders upfront also eliminates multi-second compute hitches in both Async and Sync modes.
  • Fixed Missing Opening Pipeline Variants (SR_DEPTH_CLAMP): Fixed ShaderRec not encoding depth_clamp state and expanded shader_variants.txt to 748 verified variants (including all 14 opening/intro pipelines), achieving 0 skipped draws from frame 0 on a fresh install.

Stability & Config Fixes

  • Fixed VK_ERROR_OUT_OF_DATE_KHR (-1000001004) Swapchain Spam: Properly handles minimized 0x0 windows and cleanly rebuilds out-of-date swapchains with rate-limited logging.
  • Fixed Intro Movie EOS Busy-Spin: Fixed an end-of-stream event race that spun ~20,000 times/sec and flooded logs during the opening cutscene (input queries reduced by 99.8%).
  • Aligned Default Config (vk_copy_vertices = 0): Cleaned up legacy recomplauncher.json choice ordering so fresh installs consistently use VAMM vertex caching.

v0.1.0-beta.3 更新日志

升级说明: 本版本 GAMELIB_ID 未变更,老玩家覆盖更新后无需重新编译 lasgame_E74395F066FD8CCB.dll,保留原存档与数据目录即可直接启动。

彻底修复跨显卡(A卡 / N卡)首次冷启动“有声黑屏”

  • 新增首次启动全量着色器编译进度画面:空缓存首次启动时显示流畅的五语动画进度界面,在启动音频与片头视频前一次性编完并落盘 748 条已验证变体 + 全游戏全部 449 个独立 Compute 着色器(视 CPU/显卡不同仅首次需约 30–120 秒,i5-12450H + RTX 3050 实测约 25 秒);后续启动 100% 命中磁盘缓存,约 5–6 秒直接进入游戏、不再弹窗。
  • 根治后台编译队列饿死与 Compute 冻结:移除开机后台盲塞与竞态,为编译线程降级并预留核心防止窗口假死,同时为运行期实时管线建立高优先级队列;全量 Compute 提前编完后,无论开启 Async 还是 Sync 模式均不再触发数秒级 Compute 卡顿。
  • 修复开场管线缓存失配(SR_DEPTH_CLAMP):补齐 ShaderRec 的 depth_clamp 状态记录,将随仓 shader_variants.txt 扩充至 748 条(补齐全部 14 条开场/片头核心管线),空缓存冷启动进片头实现 0 skipped draws。

稳定性与配置修复

  • 修复 -1000001004(VK_ERROR_OUT_OF_DATE_KHR)交换链报错刷屏:窗口最小化 0x0 安静退避并在恢复后安全重建交换链。
  • 修复片头视频 EOS 空转刷屏:根治 306 帧片头播完后状态竞态导致的每秒 2 万次空转与日志刷屏(轮询量下降 99.8%)。
  • 对齐默认设置:修正 recomplauncher.json 旧首选项排序,确保新安装默认启用 vk_copy_vertices = 0 顶点缓存。

OrigamiKingRecomp v0.1.0-beta.2

Pre-release

Choose a tag to compare

@WenVil WenVil released this 27 Nov 12:34

What's Changed in v0.1.0-beta.2

Upgrade Note: GAMELIB_ID is unchanged from v0.1.0-beta.1 — existing players do not need to recompile lasgame_E74395F066FD8CCB.dll. Just replace the extracted files and keep your existing data folder / saves.

AMD Windows Black-Screen Fixes & Vulkan Diagnostics

  • Fixed host_import_ptr() memory type selection: Now queries vkGetBufferMemoryRequirements and intersects req.memoryTypeBits & mp.memoryTypeBits before allocating BDA memory, preventing silent allocation/bind failures on AMD Windows drivers.
  • Disabled VK_EXT_vertex_input_dynamic_state (vids) by default on AMD Windows (0x1002): Avoids the AMD Windows driver bug where fixed vertex-input pipelines draw nothing (override available via LARECOMP_VK_DYN_VERTEX=1).
  • Fixed VAMM fallback gating: Prevents shaders from reading zeroed VAMM buffers if gc_lazy falls back.
  • Safe minImportedHostPointerAlignment > 4096 handling: Splits unaligned or small VAMM chunks onto HOST_VISIBLE | HOST_COHERENT + BDA copy fallback buffers instead of silently dropping them (zero impact on NVIDIA's 4096-byte fast path).
  • Enhanced Vulkan logging & present barrier: Added explicit vk_full_barrier before present rendering, detailed error logs for shader/pipeline failures, and a one-line [vk] diag: hardware/feature summary at startup to make GPU troubleshooting immediate.

Wine / Proton Error Guidance & Documentation

  • Clear Wine/Proton Zig cache detection: Detects Wine/Proton (WineHQ Bug #59935) or network-drive manifest_create Unexpected failures inside zig.exe cc and shows actionable multi-language guidance directly in the launcher instead of a generic compile error.
  • Updated Bilingual README & FAQ: Added AMD black-screen troubleshooting and Wine/Proton workaround instructions in both README.md and README_zh.md.

v0.1.0-beta.2 更新日志

升级说明: 本版本 GAMELIB_ID 与 v0.1.0-beta.1 完全一致,老玩家覆盖更新后无需重新编译 lasgame_E74395F066FD8CCB.dll,保留原存档与数据目录即可直接启动。

Windows AMD 显卡黑屏修复与 Vulkan 诊断增强

  • 修复 host_import_ptr() 内存类型选择:先查询 VkBuffer 内存需求并与主机指针内存类型求交,修复 AMD Windows 驱动下可能静默分配/绑定失败的问题。
  • AMD Windows 默认禁用动态顶点输入状态(vids):绕过 AMD 驱动开启 VK_EXT_vertex_input_dynamic_state 导致固定顶点管线无绘制的已知问题(调试可通过 LARECOMP_VK_DYN_VERTEX=1 强制开启)。
  • 修复 VAMM 回退门控:杜绝回退后着色器继续读全零缓冲的半开启状态。
  • 安全兼容 minAlign > 4096(如 64 KiB 对齐):对不足对齐边界的 VAMM 块改走安全 BDA 拷贝回退缓冲,不再静默丢弃(保持 NVIDIA 4 KiB 零拷贝热路径不受影响)。
  • 增强诊断日志与呈现屏障:新增启动单行 [vk] diag: 汇总日志、着色器/管线创建失败详细报错以及呈现前显式全屏障。

Wine / Proton 报错引导与文档更新

  • 识别 Wine/Proton 下 zig.exe 缓存清单失败:命中 manifest_create Unexpected(WineHQ Bug #59935)时,启动器直接显示五语排查与绕过指引,普通编译失败亦透传末行真实错误。
  • 同步更新中英双语 README.md / README_zh.md 排查指南。

OrigamiKingRecomp v0.1.0-beta.1

Pre-release

Choose a tag to compare

@WenVil WenVil released this 27 Nov 06:05