---
title: "Glorpia"
description: "Engine identity, runtime-mode, memory and player performance information exposed through the global Glorpia table."
canonical: "https://docs.glorpia.com/scripting/glorpia"
markdown: "https://docs.glorpia.com/scripting/glorpia.md"
---
# Glorpia

Engine identity, runtime-mode, memory and player performance information exposed through the global Glorpia table.

**Category:** Scripting / API

## Properties

| Name | Type | Description |
| --- | --- | --- |
| `EngineName` | string | The engine name: Glorpia. |
| `EngineVersion` | string | The running Glorpia engine version. This build reports 0.2.0. |
| `IsOfflineMode` | boolean | True when the current runtime is using Glorpia's offline identity. Studio Offline Mode uses PlayerID 0. |
| `IsServer` | boolean | True in the authoritative server runtime. |
| `IsClient` | boolean | True in a client runtime such as the Glorpia App or Studio Client View runtime. |
| `EngineMemoryUsage` | string | Current process resident-memory usage formatted in MB, for example 184.27 MB. |

## GetFramesPerSecond()

`Glorpia.GetFramesPerSecond()` returns a table whose keys are current `Player` instances and whose values are their most recently reported FPS numbers.

```luau
for player, fps in pairs(Glorpia.GetFramesPerSecond()) do
    print(player.Name, fps)
end
```

> **Note:** FPS is reported by each connected client at a low frequency rather than being sent every frame. A newly connected player can temporarily report `0` until the first sample arrives.

## GetEngineMemory()

`Glorpia.GetEngineMemory()` returns a table containing numeric memory values in MB.

| Name | Type | Description |
| --- | --- | --- |
| `Total` | number | Total process resident-memory usage represented by the runtime. |
| `Parts` | number | Tracked memory used by live Part and SpawnLocation runtime state. |
| `Scripts` | number | Tracked memory used by script state and creator script source text. |
| `Instances` | number | Tracked hierarchy bookkeeping, names, child lists and other directly classified Instance data. |
| `Other` | number | The remaining process memory, including unclassified engine systems such as renderer, physics, Lua VM, networking, audio, UI, loaded assets and allocator overhead. |

> **Note:** `Total` is process-level memory. The subsystem rows are tracked estimates rather than allocator-level measurements, so `Other` contains memory that cannot be assigned reliably to one Glorpia subsystem.

## Example: inspect the runtime

```luau
print(Glorpia.EngineName)
print(Glorpia.EngineVersion)
print("Server:", Glorpia.IsServer)
print("Client:", Glorpia.IsClient)
print("Offline:", Glorpia.IsOfflineMode)
print("Memory:", Glorpia.EngineMemoryUsage)

for player, fps in pairs(Glorpia.GetFramesPerSecond()) do
    print(player.Name, player.Platform, fps)
end

local memory = Glorpia.GetEngineMemory()
print("Total MB:", memory.Total)
print("Parts MB:", memory.Parts)
print("Scripts MB:", memory.Scripts)
print("Instances MB:", memory.Instances)
print("Other MB:", memory.Other)
```

## Runtime context

Creator `ServerScript` code runs with `Glorpia.IsServer == true` and `Glorpia.IsClient == false`. Creator `LocalScript`s and client CoreScripts use the opposite values.

In Studio Offline Mode, playtesting uses the built-in offline Player identity with `PlayerID` `0`, so `Glorpia.IsOfflineMode` is true in that playtest.

## Related

- [Offline Mode](https://docs.glorpia.com/studio/offline-mode.md) — How Studio behaves without Glorpia online services.
- [Public Scripts](https://docs.glorpia.com/scripting/public-scripts.md) — Creator scripting execution and permissions.
- [RunService](https://docs.glorpia.com/services/runservice.md) — Per-frame signals and runtime-state methods.
