> ## Documentation Index
> Fetch the complete documentation index at: https://docs.directgvr.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Can DirectGVR decrease your patch sizes?

> Measure how much data the launcher downloads when it updates from one release to another with a delta.

To compare DirectGVR's patch sizes with your current patching, measure how much data the launcher downloads during a delta update. If CDN compression is on for your account, the launcher's debug log is the most accurate measurement.

## Requirements

* Delta update paths between the releases you're testing. See [Create delta update paths](https://docs.directgvr.com/release-automation/create-delta-update-paths.md).

## Sync the first release

1. In your launcher skin's `workflow.json`, set the repository name for the first release:

   ```json theme={null}
   "load": {
     "type": "macro",
     "keyValuePairs": {
       "repositoryName": "gameclient.version.1557417380.4.0.0.52",
       "repositoryTitle": "Delta Size Demo",
       "repositoryDirectory": "{ModuleDirectory}Download{PathSlash}"
     }
   },
   ```

2. Load the skin or compile the launcher, and run it until the download finishes.

3. Close the launcher.

## Update with the delta

1. Edit `workflow.json` again and set the repository name for the next release, which has a delta from the first:

   ```json theme={null}
   "load": {
     "type": "macro",
     "keyValuePairs": {
       "repositoryName": "gameclient.version.1557421357.4.0.1.59",
       "repositoryTitle": "Delta Size Demo",
       "repositoryDirectory": "{ModuleDirectory}Download{PathSlash}"
     }
   },
   ```

   You can also change the required release with [promote.py](https://docs.directgvr.com/release-automation/environments-and-promotion.md) between sessions instead of changing the repository name.

2. Run the launcher with the `--debug` argument so it writes a debug log. See [Run the client in debug mode](https://docs.directgvr.com/troubleshooting/debug-mode.md).

3. Close the launcher when the update finishes.

> [!NOTE]
>
> Download speed during a delta update is usually lower than during the first download. The launcher downloads less data, at different times, while it works on files already on disk. There aren't separate download and apply stages.

## Read the results

1. Open `host.developer.log` and search for `piecesMasked`. A non-zero value confirms the launcher used an update path with masks and deltas:

   ```text theme={null}
   03/27/2017 13:07:45 Repository.0850439C - Dictionary.085C91EC - piecesMasked=244 (Int64)
   ```

2. Search for `remoteReadBytes`. This is the amount of data requested from the CDN or server:

   ```text theme={null}
   03/27/2017 13:07:45 Repository.0850439C - Dictionary.085C91EC - remoteReadBytes=85323321 (Int64)
   ```

   Divide by 1024 twice to get MiB. For example, 85323321 / 1024 / 1024 = 81.37 MiB.

### Delta counters

Search the log for `delta (Dictionary)` to see how much data the delta operations read and wrote on disk:

```text theme={null}
03/27/2017 13:07:45 Repository.0850439C - Dictionary.085C91EC - delta (Dictionary)
03/27/2017 13:07:45 Repository.0850439C - Dictionary.09187058 - type=cache (String)
03/27/2017 13:07:45 Repository.0850439C - Dictionary.09187058 - errorCount=0 (Int64)
03/27/2017 13:07:45 Repository.0850439C - Dictionary.09187058 - readBytes=117489155 (Int64)
03/27/2017 13:07:45 Repository.0850439C - Dictionary.09187058 - writeBytes=218103808 (Int64)
```

If these counters are zero, the launcher didn't use deltas. Check that you used the right repository names for both releases, and that the workflow reads the local metafile correctly.

If you need help, [open a support ticket](https://docs.directgvr.com/troubleshooting/support-ticket.md) with the debug log and the repository names you tested.

## Related

* [Updates without a delta](https://docs.directgvr.com/release-automation/updates-without-delta.md)
* [Create delta update paths](https://docs.directgvr.com/release-automation/create-delta-update-paths.md)


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.