Skip to main content

Benchmarks

Real measured numbers, not estimates. Use them to decide which solver and which features to enable, then measure your own scene, because the answer genuinely depends on what you turn on.

Test conditions

Measured with the Roblox MicroProfiler in Studio, ShardCount = 16 for the parallel solver. Absolute milliseconds vary by device and scene complexity, so read the ratios, not the raw numbers. Your hardware, your geometry, and your feature mix will move these.

How to read the columns:

  • ser/base, par/base: speed relative to that solver's own baseline. Above 1.00x means the config is faster than baseline (an optimization); below 1.00x means it costs more (a feature).
  • par vs ser: how much faster parallel is than serial for that same config. Below 1.00x means parallel is slower.

Optimization Features, 20,000 casts​

Configserialparallelser/basepar/basepar vs ser
baseline98.86 ms47.33 ms1.00x1.00x2.09x
SpatialPartition44.29 ms35.25 ms2.23x1.34x1.26x
LOD76.01 ms47.49 ms1.30x1.00x1.60x
SpatialPartition + LOD45.69 ms34.87 ms2.16x1.36x1.31x
FireTravel + listener, batch off112.37 ms62.79 ms0.88x0.75x1.79x
FireTravel + listener, batch on110.60 ms61.87 ms0.89x0.77x1.79x

What this says:

  • Spatial partitioning is the single biggest win on serial, 2.23x, and it more than halves the frame. If you only enable one optimization, make it this one.
  • LOD helps serial (1.30x) but does nothing on parallel (1.00x, 47.33 -> 47.49 ms is noise). On the parallel path the raycasts are already spread across cores, so skipping frames for distant bullets reclaims far less.
  • Spatial + LOD is not additive. Combined (2.16x) is no better than spatial alone (2.23x), because LOD takes precedence: a bullet in LOD skips spatial-tier classification entirely, so the two overlap rather than stack.
  • Travel events are expensive at volume. Turning on FireTravelEvents with a listener costs ~14% on serial and ~25% on parallel versus baseline. Batching recovers only a little (112.37 -> 110.60 serial). At 20k casts, the cheapest travel event is the one you don't fire.

Physics Features, 5,000 casts​

Configserialparallelser/basepar/basepar vs ser
baseline26.45 ms15.47 ms1.00x1.00x1.71x
Coriolis26.46 ms13.07 ms1.00x1.18x2.02x
Wind26.50 ms14.35 ms1.00x1.08x1.85x
Drag30.62 ms15.92 ms0.86x0.97x1.92x
Magnus30.96 ms17.83 ms0.85x0.87x1.74x
HighFidelity35.09 ms22.04 ms0.75x0.70x1.59x
HighFidelity + SixDOF38.68 ms22.91 ms0.68x0.68x1.69x
Homing40.13 ms41.19 ms0.66x0.38x0.97x
SixDOF89.73 ms37.18 ms0.29x0.42x2.41x
SixDOF + Tumble89.36 ms39.97 ms0.30x0.39x2.24x
ALL PHYSICS109.22 ms66.11 ms0.24x0.23x1.65x

What this says:

  • Coriolis and Wind are free. Both sit at 1.00x on serial, they're a couple of vector ops folded into the existing acceleration. Enable them without thinking about cost.
  • Drag and Magnus cost ~15%. Reasonable for what they add. They're recalculated on the DragSegmentInterval cadence, not per frame, which is why they're this cheap.
  • 6DOF is by far the most expensive feature, 3.4x the baseline cost on serial (26.45 -> 89.73 ms). It's also where parallel pays off most (2.41x). If you need 6DOF at volume, use Vetra.newParallel().
  • Homing is the one case where parallel doesn't help (0.97x, parallel is marginally slower). This is expected: a HomingPositionProvider forces the bullet onto the sync path, so the provider runs on the main thread every frame and you pay coordination overhead without gaining parallelism.
  • Tumble is free once 6DOF is on (89.73 -> 89.36 ms, i.e. noise). It's riding physics that's already being computed.

Picking a Solver​

Parallel wins in almost every configuration measured here, between 1.6x and 2.4x, with two exceptions worth knowing:

SituationUse
Heavy physics (6DOF especially) at volumeParallel, biggest gap (2.41x)
Large bullet counts, plain travelParallel (2.09x at 20k)
Homing / provider-driven bulletsEither, parallel gives no benefit (0.97x)
CastFunction requiredSerial, not supported in parallel
Same-frame hit reaction neededSerial, parallel is one frame late
Small counts (tens of bullets)Serial, coordination overhead isn't paid back
These are Studio numbers

Studio is not a live server. Treat the ratios as directional and benchmark your own scene before committing to an architecture, especially near the serial/parallel crossover.