Game SDK
The game SDK is the Vix.cpp profile for game-oriented and realtime rendering workflows.
Install it when a project needs the Vix game layer, SDL support, OpenGL support, or a native environment prepared for interactive applications. The profile includes the common Vix foundation, then adds the pieces needed for projects where the main loop, rendering, input, and runtime behavior are closer to a game or realtime app than a normal backend service.
vix upgrade --sdk gameAfter the profile is installed, the workflow stays centered on the Vix CLI. You still use vix build, vix run, and vix dev. The SDK profile gives the machine the native game layer that those commands can use.
Install the Game SDK
Install the CLI first if it is not already installed.
Linux and macOS:
curl -fsSL https://vixcpp.com/install.sh | bashWindows PowerShell:
irm https://vixcpp.com/install.ps1 | iexThen install the game profile:
vix upgrade --sdk gameInspect the profile before installing it:
vix upgrade --sdk info gameUse this command when you want to see the modules, notes, version information, and system dependencies for the current release.
What the Game SDK includes
The game profile includes the common Vix foundation.
common foundation
cli
core
json
error
path
fs
io
env
os
utils
log
async
time
process
threadpool
template
ui
noteIt then adds the game-oriented layer.
game
game
SDL support
OpenGL supportThe common foundation gives the project the normal Vix runtime and CLI workflow. The game profile adds the native support needed for realtime application work.
When to use it
Use the Game SDK when the project is built around game or realtime behavior.
That includes game prototypes, interactive demos, rendering experiments, input-driven applications, realtime loops, or projects that need SDL and OpenGL support through the Vix environment.
vix upgrade --sdk gameThe default SDK is enough for normal Vix projects and simple local programs. The game profile is the right choice when the project starts using the game module or needs the native libraries behind a realtime runtime.
Use it with a project
A normal game-oriented workflow looks like this:
vix new game-demo
cd game-demo
vix install
vix devBuild without running:
vix buildRun manually:
vix runStart the development loop:
vix devThe SDK profile stays behind the CLI workflow. You install the game profile once, then work with the project through Vix commands.
Build a game project
Use vix build when you only want to compile the project.
vix buildUse verbose output when you need more detail from the build workflow.
vix build -vUse a release build when preparing an optimized binary.
vix build --preset releaseThe build command detects the project, resolves the local Vix environment, and uses the installed SDK profile during the build.
Run a game project
Use vix run when you want to build and start the application manually.
vix runPass runtime arguments after --run.
vix run --run --fullscreenFor a small file or a quick check:
vix run main.cppSingle-file usage is useful for verifying that the CLI and SDK are installed correctly before moving into a full project.
Game command workflow
Vix also exposes a vix game command family for game-oriented project workflows.
vix game exportUse this when a project needs the game export or packaging workflow provided by the CLI. The SDK gives the machine the native game layer, while the CLI command gives the project a consistent way to perform game-specific operations.
Realtime projects
Game projects are different from normal command-line tools or backend services. They usually have a runtime loop, input handling, rendering work, assets, and platform dependencies. The Game SDK exists so that this native layer does not have to live inside the default installation for every Vix developer.
game runtime
input and windowing support
rendering support
asset-oriented workflows
export workflowThe module-specific guide should be used for API-level examples. This page only explains which SDK profile provides the native environment for game-oriented work.
Verify the installation
After installing the game profile, inspect it:
vix upgrade --sdk info gameCheck the environment:
vix doctorPrint Vix paths and local state:
vix infoThen run a small file to confirm that the CLI can find the installed SDK.
cat > main.cpp <<'CPP'
#include <vix.hpp>
int main()
{
vix::print("Hello from the Vix Game SDK");
return 0;
}
CPP
vix run main.cppExpected output:
Hello from the Vix Game SDKIf this compiles and runs, the CLI and SDK profile are ready. For a real game project, also make sure the system dependencies shown by vix upgrade --sdk info game are installed.
System dependencies
Game workflows usually depend on operating-system libraries. Depending on the platform and release, this can include SDL2, OpenGL, graphics headers, and related development packages.
Check the current release information before installing or debugging the profile.
vix upgrade --sdk info gameThe SDK profile gives Vix the native game layer, but the operating system still needs the libraries that the game runtime and rendering support depend on.
Update the Game SDK
Install or update the latest game profile:
vix upgrade --sdk gamePreview the update without changing files:
vix upgrade --sdk game --dry-runInstall a specific version:
vix upgrade --sdk game --version v2.7.0Use JSON output for scripts:
vix upgrade --sdk game --jsonRemove the Game SDK
Remove the game profile when it is no longer needed:
vix uninstall --sdk gamePreview the removal first:
vix uninstall --sdk game --dry-runRemove a specific version:
vix uninstall --sdk game --version v2.7.0List installed SDK profiles known to the uninstall command:
vix uninstall --sdk-listRemoving the SDK profile removes the local Vix game SDK files. It does not remove operating-system packages installed through your system package manager.
When the Game SDK is not enough
The game profile is focused on game-oriented and realtime rendering workflows. If the project also uses another specialized module family, install the matching profile beside it.
For backend, WebSocket, WebRPC, middleware, validation, crypto, or outgoing HTTP requests:
vix upgrade --sdk webFor database, ORM, key-value, or cache work:
vix upgrade --sdk dataFor desktop applications:
vix upgrade --sdk desktopFor P2P nodes, local-first sync, or peer networking:
vix upgrade --sdk p2pFor agent tooling:
vix upgrade --sdk agentA machine can have multiple SDK profiles installed. Use the smallest set that matches the projects you are actively building.
Common mistakes
Using the default SDK for game modules
The default profile includes the base Vix development layer, but it does not provide the game profile.
If the project uses the game runtime or depends on SDL and OpenGL support through Vix, install the game profile.
vix upgrade --sdk gameInstalling the full SDK for one game project
The full SDK works, but it is usually more than a game project needs.
vix upgrade --sdk allFor game-oriented and realtime rendering work, use the game profile.
vix upgrade --sdk gameThis keeps the local setup focused and avoids pulling unrelated module families into the development environment.
Forgetting graphics and windowing dependencies
The game SDK gives Vix the game profile, but the operating system still needs the native libraries required by the game layer.
Check the profile information first:
vix upgrade --sdk info gameInstall the system packages shown there before debugging the project as if the C++ code were the problem.
Passing runtime arguments to vix build
vix build compiles only. It does not start the app.
vix buildUse vix run when you want to run the program.
vix run --run --fullscreenTreating the game profile as a desktop profile
The game profile is for game-oriented and realtime rendering workflows. The desktop profile is for the Vix desktop shell and UI WebView support.
Use the game profile for realtime rendering projects.
vix upgrade --sdk gameUse the desktop profile for desktop shell projects.
vix upgrade --sdk desktopDaily workflow
A typical game project workflow looks like this:
vix new game-demo
cd game-demo
vix install
vix devBuild and run manually:
vix build
vix runExport when the project is ready for the game export workflow:
vix game exportBefore committing:
vix fmt --check
vix check --testsBefore release:
vix build --preset release
vix tests --preset releaseThe Game SDK stays behind the CLI workflow. Once installed, the profile gives Vix the native layer needed for game-oriented projects.
Next step
Continue with the Agent SDK when the project needs local-first agent tooling or controlled automation workflows.