benchphysics Reference
Script defined in `lua/console/benchphysics.lua`. Simple legacy physics scaling benchmark that measures per-frame delay as vehicle count increases, outputting results to CSV.
Script defined in lua/console/benchphysics.lua. Simple legacy physics scaling benchmark that measures per-frame delay as vehicle count increases, outputting results to CSV.
Functions/Exports
testStep(i) (global)
Spawns i objects, runs 1000 frames via updateLoop(), returns average ms per frame.
benchPhysics() (global)
Runs the full benchmark from 0 to 8 vehicles, writing results to phys-scale.csv.
- CSV columns:
vehicle count;delay - Outputs progress to stdout
Usage
rerequire("lua/console/benchphysics")
benchPhysics()Internal Notes
- Uses semicolon-delimited CSV (European style)
- Relies on global
spawnObjects()andupdateLoop()functions (provided by BeamNG console environment) - Much simpler than bananabench - no MBeams/s calculation, just raw frame delay
- Fixed vehicle count of 8
- Legacy script - bananabench supersedes this
bananabench Reference
Module defined in `lua/console/bananabench.lua`. Core physics benchmarking module that measures beam simulation throughput (MBeams/s) and real-time performance percentage across multiple vehicles.
BeamConsole Folder Overview
Console scripts for BeamNG.drive - benchmarks, tests, and utilities run outside the game engine in headless/console mode.