MoonVeil-Docs/content/docs/options/virtualization.md
2025-06-20 01:34:41 -05:00

947 B

weight title description icon date lastmod
100 Virtualization Compilation and VM Generation article 2025-05-01T18:47:58-05:00 2025-05-01T18:47:58-05:00

The MoonVeil virtualization pass handles lifting and compiling selected virtualized blocks using the MV_VM or MV_ENC_FUNC macros. The virtualizer handles the generation of a uniquely hardened luau interpreter implemented in luau and transpiles virtualized blocks to it. Each script has a completely unique instruction set with hot-patching mnemonics, shuffled opcode encoding and behavior.

{{% alert context="info" text="Note: This requires a paid plan to enable, otherwise the macros act as no-ops" /%}}

Currently the only child option is 'Virtualize Script' which will wrap the entire script in an MV_VM macro, effectively marking the entire script (excluding MV_OMIT blocks).