Glorpia Docs
Scripting / API

Glorpia

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

Properties

NameTypeDescription
EngineNamestringThe engine name: Glorpia.
EngineVersionstringThe running Glorpia engine version. This build reports 0.2.0.
IsOfflineModebooleanTrue when the current runtime is using Glorpia's offline identity. Studio Offline Mode uses PlayerID 0.
IsServerbooleanTrue in the authoritative server runtime.
IsClientbooleanTrue in a client runtime such as the Glorpia App or Studio Client View runtime.
EngineMemoryUsagestringCurrent 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
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.

NameTypeDescription
TotalnumberTotal process resident-memory usage represented by the runtime.
PartsnumberTracked memory used by live Part and SpawnLocation runtime state.
ScriptsnumberTracked memory used by script state and creator script source text.
InstancesnumberTracked hierarchy bookkeeping, names, child lists and other directly classified Instance data.
OthernumberThe remaining process memory, including unclassified engine systems such as renderer, physics, Lua VM, networking, audio, UI, loaded assets and allocator overhead.
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 LocalScripts 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