Repository navigation
Releases
OrigamiKingRecomp v0.1.0-beta.5
What's Changed in v0.1.0-beta.5
Upgrade Note:
GAMELIB_IDis unchanged — existing players do not need to recompilelasgame_E74395F066FD8CCB.dll. Just replace the extracted files and keep your saves/data folder.
Fixed 3D Lighting Corruption (Dark Areas & Neon-Red Glow)
- Fixed 3D
NVNpackagedTextureLayoutDecoding (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 withpl > 5were dropped back to defaultbh = 3, causing 3D probe slices to misalign/zero out (dark/greenish shadows) and overrun into adjacentR16Fbuffers (bright neon-red artifacts andNaNs in areas like Picnic Road and battles). - Fixed 3D Layer Alignment: Updated
tegra_layer_sizeto align 3D layers by512 << (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 duringvamm_unmap_syncand ensured the render queue and in-flight GPU fences fully drain beforeplat_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 madesubmit_seq/gc_genatomic to prevent cross-thread races and premature frees. - Expanded Compute Shader Cache (
256 → 2048): Fixedg_cs_taboverflow 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
nvnTextureInitializeoverwrites,nvnMemoryPoolFinalize,nvnTexturePoolFinalize/nvnSamplerPoolFinalize, and NV12 video planes. - Improved GPU Fault Diagnostics: Fixed a disabled
VK_EXT_device_faultlogging branch and added fault-address lookup (vimpBDA / allocations) plus a recent-operation ring dump onVK_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
What's Changed in v0.1.0-beta.4
Upgrade Note:
GAMELIB_IDis unchanged — existing players do not need to recompilelasgame_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 instantAbortImpl -> svcBreakcrash when pressing Minus (-/ keyboardBackspace) in-game or opening the Manual in Settings (nn::web::ShowOfflineHtmlPage).ILibraryAppletAccessor::PopOutDatanow returns a valid0x1010-byteOfflineHtmlPageReturnValueIStorage(and also covers0x13Web and0x0CController applets). - Prevented Handle & Memory Leaks: Added
IStoragereference counting and bounds checks, handledIApplicationFunctions::SetTerminateResult, and released kernel event handles when closingILibraryAppletAccessorso 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字节OfflineHtmlPageReturnValueIStorage(同步覆盖0x13Web 与0x0CController 同类子应用)。 - 修复句柄与内存泄漏:为
IStorage补齐引用计数与越界防护,补充IApplicationFunctions::SetTerminateResult处理,并在关闭ILibraryAppletAccessor时回收内核事件句柄,连续多次按-不会耗尽句柄表。 - PC 端行为说明: 原版 Switch 按
-键或点“说明”调用的是主机内置离线网页浏览器查看电子手册;PC 端不模拟该系统浏览器组件,现改为播放按键提示音后直接安全返回游戏,不影响游戏内任何正常流程与提示。
OrigamiKingRecomp v0.1.0-beta.3
What's Changed in v0.1.0-beta.3
Upgrade Note:
GAMELIB_IDis unchanged — existing players do not need to recompilelasgame_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): FixedShaderRecnot encodingdepth_clampstate and expandedshader_variants.txtto 748 verified variants (including all 14 opening/intro pipelines), achieving0 skipped drawsfrom frame 0 on a fresh install.
Stability & Config Fixes
- Fixed
VK_ERROR_OUT_OF_DATE_KHR (-1000001004)Swapchain Spam: Properly handles minimized0x0windows 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 legacyrecomplauncher.jsonchoice 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
What's Changed in v0.1.0-beta.2
Upgrade Note:
GAMELIB_IDis unchanged fromv0.1.0-beta.1— existing players do not need to recompilelasgame_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 queriesvkGetBufferMemoryRequirementsand intersectsreq.memoryTypeBits & mp.memoryTypeBitsbefore 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 viaLARECOMP_VK_DYN_VERTEX=1). - Fixed VAMM fallback gating: Prevents shaders from reading zeroed VAMM buffers if
gc_lazyfalls back. - Safe
minImportedHostPointerAlignment > 4096handling: Splits unaligned or small VAMM chunks ontoHOST_VISIBLE | HOST_COHERENT + BDAcopy 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_barrierbefore 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-drivemanifest_create Unexpectedfailures insidezig.exe ccand 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.mdandREADME_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排查指南。