Log inGet started
Package

costBench.module

This package holds more than this page lists. See all of its files in its world.

README.md

costBench

Measures what each kind of Tidewater water costs to draw on the device it runs on. It puts one kind at a time in front of the camera, lets it settle, and compares the frame time with the same view without any water. Use it to fill in real numbers for a browser, an Android tablet or any machine you can open the world on.

local Bench = require("tidewater.modules.costBench")
local result = Bench.run()              -- every kind, 180 frames each
print(Bench.format(result))             -- one line per kind: +ms over the bare frame

run({ kinds = { "lake", "ocean" }, frames = 240, settle = 3, onRow = function(row) end }) narrows the list and reports each kind as it finishes. Run it in play: the frame time it measures is the whole frame as presented, so close other heavy views while it runs.