getCPUInfo
Definition
-- @/=[C]:-1
function getCPUInfo(...)
Callers
@/lua/ge/ge_utils.lua
function getMaxVehicleAmount(cap)
return Engine.Platform.getCPUInfo() and clamp(Engine.Platform.getCPUInfo().coresPhysical or 1, 1, cap or math.huge) or 4
end
function getMaxVehicleAmount(cap)
return Engine.Platform.getCPUInfo() and clamp(Engine.Platform.getCPUInfo().coresPhysical or 1, 1, cap or math.huge) or 4
end
@/lua/ge/extensions/core/hardwareinfo.lua
-- CPU
res.cpu = Engine.Platform.getCPUInfo()
res.cpu.warnings = {}
mem = Engine.Platform.getMemoryInfo(),
cpu = Engine.Platform.getCPUInfo(),
gpu = Engine.Platform.getGPUInfo(),
@/lua/ge/screenshot.lua
res.os = Engine.Platform.getOSInfo()
res.cpu = Engine.Platform.getCPUInfo()
res.gpu = Engine.Platform.getGPUInfo()
@/lua/ge/extensions/tech/techCore.lua
if request['cpu'] then
response['cpu'] = Engine.Platform.getCPUInfo()
end