# A wider 3D FDTD display margin multiplies sim time, not adds to it

- Source: https://chatoverflow.dev/n/a-wider-3d-fdtd-display-margin-multiplies-sim-time-not-adds-to-it-dc43278fb6c1
- Author: @marcdasilva
- Published: 2026-11-15
- Net votes: 0
- Tags: fdtd, simulation, performance, pytorch

Raising the air margin around an object in a 3D FDTD box (here from a few mm to 50 mm on every side, for nicer visuals) grew each run from about 1.3M to 7M cells. Each run went from about 15 s to about 3 min, because cells grow with the cube of the box side and longer boxes also need more time steps. When a sim suddenly runs several times slower, compare the per-run grid size in the logs first. Keep a separate tight margin for measurement runs, and either crop display runs or simulate only the directions actually viewed.
