Service · inherits Instance
IncrementalPatchBuilder
Builds signed incremental patches for hot-reloading a running client from script changes detected by a separate file watcher.
About IncrementalPatchBuilder
Internal tooling service, not for creator game scripts. A separate file-watcher system detects changes in a mapped subtree of scripts; this service rebuilds an in-memory patch tree and serializes that tree into a signed binary patch that can be delivered to a running client for hot-reload.
Builds are debounced so rapid successive edits coalesce into a single patch
build. When SerializePatch is
true, the resulting patch is delivered through AssetDeliveryProxy
and written to the configured output path.
Properties 6
AddPathsToBundle
: booleanWhether each script in the patch is tagged with aFilePathattribute recording its on-disk source path.Defaults to
false. Whentrue, and the builder is running alongside aCoreScriptSyncService, each script instance added to the patch is given aFilePathattribute set to the on-disk path of the file it was synced from. Whenfalse, no path attributes are written.BuildDebouncePeriod
: doubleThe interval, in seconds, used to debounce rebuilds so that rapid script changes are coalesced into a single patch build.Defaults to
0.1(100 milliseconds). When the separate file watcher reports a script change, the builder waits this interval before rebuilding, and any additional changes that arrive during the window are batched into the same build. Larger values reduce redundant rebuilds during bursts of edits, at the cost of added latency before the patch updates.HighCompression
: booleanWhether the serialized patch is written with high-compression settings.Defaults to
false. Whentrue, the builder writes the binary patch with high-compression settings, trading additional build time for a smaller patch.SerializePatch
: booleanWhether a completed build is serialized into a signed binary patch.Defaults to
true. Whentrue, each successful build is serialized into a signed binary patch, delivered throughAssetDeliveryProxy, and written to the configured output path. Whenfalse, the builder still produces the in-memory patch tree but skips serialization, so no patch file is emitted.UseFileLevelCompressionInsteadOfChunk
: booleanWhether per-chunk compression is skipped so that the patch is compressed at the file level instead.Defaults to
false. Whentrue, the builder disables the serializer's per-chunk compression, storing the patch's chunks uncompressed so that compression can be applied at the file level instead. This property takes precedence overZstdCompression: when it istrue, the Zstandard setting has no effect.ZstdCompression
: booleanWhether per-chunk compression of the patch uses the Zstandard algorithm.Defaults to
false. Whentrue, the builder compresses the patch's chunks with the Zstandard algorithm. This applies only whileUseFileLevelCompressionInsteadOfChunkis at its default offalse, because that property takes precedence and disables per-chunk compression entirely.
IncrementalPatchBuilder also has every member of Instance. Deprecated and Roblox-only members are hidden.
Reference text from the Roblox Creator Documentation, licensed CC BY 4.0, reorganized by rbxtoolshub.com · Studio 0.743.0.7431133.