Skip to main content

ScrapComputers is a Scrap Mechanic mod that adds computers to the game. It's one of the most advanced computer mods available, with a strong focus on quality and performance.

We have the best performance out of any other computer mod

We've pushed LuaVM optimization to its absolute limits, making it arguably one of the fastest Lua virtual machines out there in only Lua. Our implementation even outperforms FiOne, which is widely recognized as the fastest LuaVM you can find online!

When it comes to displays, ScrapComputers surpasses every other mod in both speed and visual quality. Our advanced rendering techniques ensure smooth performance and crisp visuals, outperforming any other computer mod.

High-quality camera's

We have Raytraced Cameras in ScrapComputers with some awesome lighting. Unlike other mods, our cameras deliver exceptional image quality and lighting effects. This allows you to capture in-game scenes with stunning clarity and detail.

You can also play video, allowing you to make security cameras, recordings (via virtual displays), and more! This feature opens up creative possibilities for aircrafts, security cameras and more within Scrap Mechanic.

You can even use ScrapComputers as a game framework

With Lua and an easy-to-use API, you can basically make games in ScrapComputers! Whether you want to create simple arcade games, interactive puzzles, or even more complex simulations, ScrapComputers provides the flexibility and tools you need to bring your ideas to life within Scrap Mechanic.

LuaVM Performance between competitiors and our mod


Our LuaVM is arguably the fastest Lua 5.1 virtual machine written in Lua. It outperforms FiOne, which was previously considered the fastest available. To showcase its performance, we've created a benchmark script that you can run on any LuaVM implemented in Lua. See for yourself just how fast our LuaVM really is.

NameDurationAverage
ScrapComputers0.327s3.3ms average
Vanilla FiOne0.421s4.2ms average
SComputers0.573s5.7ms average
ScriptableComputers1.213s12.1ms average

The lower the duration and average, the better the LuaVM performs. All VMs are executed inside Scrap Mechanic (using LuaJIT), which may reduce overall performance.

If you're skeptical of these results, you can run the benchmark script yourself and see the performance firsthand.

Benchmark script

local clock = os.clock
local function benchmark(func, iterations, ...)
for i = 1, iterations do
func(...)
end

local start = clock()
for i = 1, iterations do
func(...)
end
local elapsed = clock() - start

local avg = elapsed / iterations
print(string.format("Benchmark result: %.5f seconds", elapsed))
print(string.format("Lower the better. Average: %.5f seconds", avg))
end

local function example(n)
local x = 0
for i = 1, n do
x = x + math.sqrt(i)
end
return x
end

benchmark(example, 1000, 1000)

So what are you waiting for?

Dive into ScrapComputers today and unlock endless possibilities in Scrap Mechanic. Start building, programming, and bring your most creative ideas to life!