# System Information

These global variables provide information about the system, operating system, and environment.

## Basic System Information

| Variable         | Type    | Description                                                            |
| ---------------- | ------- | ---------------------------------------------------------------------- |
| `system_os`      | String  | The operating system of the device (e.g., "macOS", "Windows", "Linux") |
| `on_mobile`      | Boolean | Whether the app is running on a mobile device                          |
| `system_browser` | String  | The browser being used (e.g., "Chrome", "Firefox", "Safari")           |
| `system_url`     | String  | The URL of the current environment                                     |
| `fps`            | Number  | The current frames per second of the application                       |
| `delta_time`     | Number  | The time elapsed since the last frame in seconds                       |

## Battery Information

| Variable                   | Type    | Description                                                                     |
| -------------------------- | ------- | ------------------------------------------------------------------------------- |
| `battery_charging`         | Boolean | Whether the device is currently charging                                        |
| `battery_percent`          | Number  | Current battery percentage (0-100)                                              |
| `battery_time_until_full`  | Number  | Estimated time in seconds until battery is fully charged (null if not charging) |
| `battery_time_until_empty` | Number  | Estimated time in seconds until battery is depleted                             |

## Origin System Information

| Variable                | Type   | Description                                                     |
| ----------------------- | ------ | --------------------------------------------------------------- |
| `origin`                | Object | Contains information about the Origin system version and kernel |
| `origin.version`        | String | The version number of Origin                                    |
| `origin.kernel.version` | String | The kernel version number                                       |
| `origin.kernel.type`    | String | The kernel type (e.g., "stable")                                |
| `origin.kernel.name`    | String | The kernel name (e.g., "Dawn")                                  |

## Examples

```javascript
// Display system information
log "Running on " + system_os + " using " + system_browser
log "Origin version: " + origin.version
log "Kernel: " + origin.kernel.name + " " + origin.kernel.version + " (" + origin.kernel.type + ")"

// Use the fps value for performance monitoring
if fps < 30 (
  log "Warning: Low performance detected"
)

// Use delta_time for frame-independent animations
position_x += speed * delta_time
```


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://osl.mistium.com/global-variables/system-info.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
