Skip to content

Releases

App Sandbox 0.1.5 + DLSS + native Vulkan + native OpenGL

Choose a tag to compare

@Poldino95 Poldino95 released this 12 Sep 10:30

App Sandbox 0.1.5 + DLSS + native Vulkan + native OpenGL (unofficial build)

Official App Sandbox 0.1.5 with three patches for NVIDIA GPU-PV guests:

  • DLSS works (jamesstringer90#129).
  • Vulkan apps run on NVIDIA's own Vulkan driver instead of Mesa's Vulkan-on-D3D12 (jamesstringer90#130).
  • OpenGL apps run on NVIDIA's own OpenGL driver instead of Mesa's OpenGL-on-D3D12 (jamesstringer90#131, new in this release). glGetString in the guest now reports NVIDIA GeForce RTX 3060/PCIe/SSE2, OpenGL 4.6.

The OpenGL one is the same story as Vulkan, one API over: Microsoft's opengl32.dll already finds NVIDIA's ICD in a GPU-PV guest, but the ICD looks for its GPU behind a display and in a VM no display belongs to it, so it reports no pixel formats and Windows falls back to software GL. A small opengl32.dll wrapper fixes just that discovery step and forwards everything else to Microsoft's DLL, kept beside it as asb_gl_ms.dll. Details in the PR.

What changed vs the official zip

Five files differ; everything else, EV-signed drivers included, is byte-identical to the official 0.1.5 release:

File
appsandbox_core.dll rebuilt from branch dlss-vulkan-gl
resources\appsandbox-agent.exe rebuilt from branch dlss-vulkan-gl
resources\nvapi-proxy\nvapi64.dll NVAPI forwarding proxy (DLSS)
resources\nvvk-shim\asb_nvvk.dll Vulkan ICD wrapper (native Vulkan)
resources\nvgl-wrapper\asb_opengl32.dll new, opengl32 wrapper (native OpenGL)

These are not code-signed, so SmartScreen may warn on first launch.

Automatic, nothing to do

On VM start the guest agent sets up DLSS and Vulkan as before and, in addition, keeps Microsoft's opengl32.dll as asb_gl_ms.dll and installs the wrapper as System32\opengl32.dll. Repeated after every driver copy and self-healing after Windows servicing. Guests without an NVIDIA driver keep Mesa's OpenGL-on-D3D12. ASB_NVGL_DISABLE=1 in an app's environment gives Microsoft's stock behaviour.

Existing VMs: copy resources\appsandbox-agent.exe over C:\Windows\AppSandbox\appsandbox-agent.exe, resources\nvapi-proxy\nvapi64.dll as C:\Windows\AppSandbox\d3dlayers\nvapi64_proxy.dll, and resources\nvvk-shim\asb_nvvk.dll plus resources\nvgl-wrapper\asb_opengl32.dll into C:\Windows\AppSandbox\d3dlayers\, then restart the AppSandboxAgent service (or recreate the VM).

Downloads

  • AppSandbox-0.1.5-dlss-vulkan-gl-win-x64.zip: Windows x64 (tested)
  • AppSandbox-0.1.5-dlss-vulkan-gl-win-arm64.zip: Windows ARM64 (builds, untested)

SHA-256:

ba98638842ac330754f8f72136d65f4cb404ff8e11fd562927ddffe906bf809c  AppSandbox-0.1.5-dlss-vulkan-gl-win-x64.zip
ade1976cafd089c3a921300bace4b4fa7e0481d9983b325f48885fcc105938b8  AppSandbox-0.1.5-dlss-vulkan-gl-win-arm64.zip

Tested: RTX 3060 (r616.92), Windows 11 guest: 7 Days to Die with DLSS; vulkaninfo, vkcube, vkQuake, Quake II RTX on the native Vulkan driver; X-Plane 12 (Vulkan plus its OpenGL bridge on NVIDIA, it used to crash on Mesa) and Minecraft Java 1.21 with OptiFine on the native OpenGL driver. Not covered: 32-bit apps, more than one NVIDIA GPU per guest, ARM64.

Source: branch dlss-vulkan-gl (= dlss-gpu-pv + vulkan-native-icd + opengl-native)

App Sandbox 0.1.5 + DLSS + native Vulkan, build 2

Choose a tag to compare

@Poldino95 Poldino95 released this 11 Sep 22:17

App Sandbox 0.1.5 + DLSS + native Vulkan, build 2 (unofficial)

Same as v0.1.5-dlss-vulkan (official 0.1.5 plus the DLSS patch jamesstringer90#129 and the native Vulkan patch jamesstringer90#130), with the fixes from a review of both patches:

  • Driver updates: the agent now refreshes nvapi64_orig.dll from the new driver directory. Before, the NVAPI proxy kept forwarding to the stub of the driver that was installed when the VM was first patched (DLSS still worked in my tests, but a version mismatch is not something to leave in).
  • Vulkan shim: cheaper check for "is the NVIDIA driver on the stack" (address range instead of a module lookup on every display enumeration), ICD entry points resolved once, and a proper display name in guests without a desktop.
  • NVAPI proxy: only NVIDIA adapters are accepted as "the NVIDIA GPU" (a guest can also carry an Intel iGPU via GPU-PV), and the proxy logs to %TEMP%\nvapi_proxy.log when the game cannot write under C:\Windows\AppSandbox.
  • AppSandbox.sln on the dlss-vulkan branch was missing an EndProject line.

No change in what is supported: same four unsigned files over the official zip, EV-signed drivers untouched. Full description of the two patches in the notes of v0.1.5-dlss-vulkan and in the two PRs.

Existing VMs

Copy into the guest: resources\appsandbox-agent.exe over C:\Windows\AppSandbox\appsandbox-agent.exe, resources\nvapi-proxy\nvapi64.dll as C:\Windows\AppSandbox\d3dlayers\nvapi64_proxy.dll and resources\nvvk-shim\asb_nvvk.dll into C:\Windows\AppSandbox\d3dlayers\, then restart the AppSandboxAgent service. New VMs need nothing.

Downloads

  • AppSandbox-0.1.5-dlss-vulkan-2-win-x64.zip: Windows x64 (tested)
  • AppSandbox-0.1.5-dlss-vulkan-2-win-arm64.zip: Windows ARM64 (builds, untested)

SHA-256:

e69f5473d16476582609495f5d0976531e8555097c84b3ab06049317b8ad39fd AppSandbox-0.1.5-dlss-vulkan-2-win-x64.zip
b3d932b03242f47c0e9a8a070ce9682e1a7752c5915e6e2fd5f6d5ede62e401f AppSandbox-0.1.5-dlss-vulkan-2-win-arm64.zip

Tested on RTX 3060 (driver r616.92, updated mid-way to check the refresh), Windows 11 guest: 7 Days to Die with DLSS, vulkaninfo, vkcube on the native driver.

Source: branch dlss-vulkan

App Sandbox 0.1.5 + DLSS + native Vulkan (unofficial build)

Choose a tag to compare

@Poldino95 Poldino95 released this 11 Sep 21:25

App Sandbox 0.1.5 + DLSS + native Vulkan in GPU-PV guests (unofficial build)

Official App Sandbox 0.1.5 with two patches applied for NVIDIA GPU-PV guests:

  • DLSS works (jamesstringer90#129, same as the previous v0.1.5-dlss release).
  • Vulkan games run on NVIDIA's own Vulkan driver instead of Mesa's Vulkan-on-D3D12 layer (Dozen). vulkaninfo in the guest now shows NVIDIA GeForce RTX 3060, driver NVIDIA, Vulkan 1.4 as GPU0, with ray tracing and mesh shader extensions; Dozen stays as GPU1 for anything that still wants it. Upstream PR: jamesstringer90#130.

Why it never worked: NVIDIA's driver looks for its GPU behind a display, and in a VM no display belongs to it. A small ICD wrapper (asb_nvvk.dll) fixes just that; everything else in the driver already worked through the paravirtualized adapter. Details in the PR.

What changed vs the official zip

Four files differ; everything else, EV-signed drivers included, is byte-identical to the official 0.1.5 release:

File
appsandbox_core.dll rebuilt from branch dlss-vulkan
resources\appsandbox-agent.exe rebuilt from branch dlss-vulkan
resources\nvapi-proxy\nvapi64.dll NVAPI forwarding proxy (DLSS)
resources\nvvk-shim\asb_nvvk.dll new, Vulkan ICD wrapper (native Vulkan)

These are not code-signed, so SmartScreen may warn on first launch.

Automatic, nothing to do

On VM start the guest agent sets up the DLSS bits as before and, in addition, copies asb_nvvk.dll next to nvoglv64.dll in the driver-store copy and points nv-vk64.json at it. Repeated after every driver copy, so host driver updates are covered. ASB_NVVK_DISABLE=1 in a game's environment gives the stock behaviour.

Existing VMs: copy resources\appsandbox-agent.exe over C:\Windows\AppSandbox\appsandbox-agent.exe inside the guest and restart the AppSandboxAgent service (or recreate the VM).

Downloads

  • AppSandbox-0.1.5-dlss-vulkan-win-x64.zip: Windows x64 (tested)
  • AppSandbox-0.1.5-dlss-vulkan-win-arm64.zip: Windows ARM64 (builds, untested)

SHA-256:

8b9a0a91f3c275ec0a3e0f0e72a4a8c7faa5dcd16a78212a27f2294d660dace3  AppSandbox-0.1.5-dlss-vulkan-win-x64.zip
3f3f794c98f298f2300cc5890da2f9f5c99e844ab9dbb55cd941ae4001517bb3  AppSandbox-0.1.5-dlss-vulkan-win-arm64.zip

Tested: RTX 3060 (r616.92), Windows 11 guest: vkcube, vkQuake and Quake II RTX (ray tracing) on the native driver, X-Plane 12 accepts the device (it refuses Dozen) but still needs native OpenGL for its GL bridge, 7 Days to Die with DLSS as before. Not covered: 32-bit Vulkan apps (still Dozen), more than one NVIDIA GPU per guest, ARM64.

Source: branch dlss-vulkan (= dlss-gpu-pv + vulkan-native-icd)

App Sandbox 0.1.5 + DLSS in GPU-PV guests (unofficial build)

Choose a tag to compare

@Poldino95 Poldino95 released this 11 Sep 16:17

App Sandbox 0.1.5 + DLSS in GPU-PV guests (unofficial build)

Official App Sandbox 0.1.5 with jamesstringer90#129 applied: NVIDIA DLSS works inside GPU-PV Windows guests.

Verified on an RTX 3060 (driver 32.0.16.1062) in two Windows 11 VMs with 7 Days to Die: every DLSS preset selectable and stable, real tensor-core kernels running (confirmed in the NGX logs). Ray tracing always worked in GPU-PV; DLSS never did — the write-up of why, and of the fix, is in the PR.

What changed vs the official zip

Only three files differ; everything else — including the EV-signed drivers — is byte-identical to the official 0.1.5 release:

File
appsandbox_core.dll rebuilt from the PR branch
resources\appsandbox-agent.exe rebuilt from the PR branch
resources\nvapi-proxy\nvapi64.dll new — NVAPI forwarding proxy for the guest

These three are not code-signed, so SmartScreen may warn on first launch.

How it works (automatic, nothing to do)

On VM start the guest agent creates a DriverStore → HostDriverStore junction so the NGX loader in games finds _nvngx.dll, and installs a small proxy over System32\nvapi64.dll (NVIDIA's original kept as nvapi64_orig.dll) that answers the two GPU→adapter-LUID calls a paravirtualized guest can't. Idempotent and self-healing across host driver updates.

Existing VMs: new VMs get the patched agent automatically. For VMs created with an older version, copy resources\appsandbox-agent.exe over C:\Windows\AppSandbox\appsandbox-agent.exe inside the guest and restart the AppSandboxAgent service (or recreate the VM).

Downloads

  • AppSandbox-0.1.5-dlss-win-x64.zip — Windows x64 (tested)
  • AppSandbox-0.1.5-dlss-win-arm64.zip — Windows ARM64 (builds, untested — no ARM64 machine here)

SHA-256:

40a5ad347fa7907e1dc4b82191c1e8a169991a721ccb43ee7e17cf6d8f6e644b  AppSandbox-0.1.5-dlss-win-x64.zip
8976995f0600e40daf9b61cfea27f1d90292b02803027a712ef113fea04498cb  AppSandbox-0.1.5-dlss-win-arm64.zip

Not tested: DLSS Frame Generation (needs HAGS, unavailable in GPU-PV — expected not to work), D3D12 titles, ARM64.

Source: branch dlss-gpu-pv · upstream PR: jamesstringer90#129