Rise
The Vieneo Province
Loading...
Searching...
No Matches
Grid Lightning tests

Checks lightning probability, geographic cooldown and scheduling-clock behavior.

Subsystem: Weather, clouds, lightning and atmospheric visibility
Fixture/harness: gridlightningtests
Setup: The standalone GridLightningTests harness owns the inputs, local helpers and assertion sink used by the case files below.

Build/entry point: Tests/GridLightningTests.vcxproj; declared configurations: Debug|Win32, Release|Win32.

GridLightningTests.cpp

Source: Tests/GridLightningTests.cpp

Distribution

Fixture: Grid Lightning tests
Case symbol: Distribution
Source: Tests/GridLightningTests.cpp:15

Test
Checks lightning thresholds, precipitation weighting, peak calibration and storm-rate distribution.
Source check messages (including original failure wording)

  • lightning threshold changed
  • precipitation weighting changed
  • peak calibration is not one event per second
  • uniform storm no longer follows calibrated precipitation curve
  • sector count multiplied the total strike rate
  • dry plot selected
  • storm direction/25-to-1 intensity weighting changed
  • wet coverage is not normalized
  • nearby-player scaling changed
  • snow attenuation changed
  • zero player count broke the rate
  • cube projection cell areas ignored
  • out-of-range storm produced strikes
  • invalid/duplicate cells entered distribution

Cooldown And Clock

Fixture: Grid Lightning tests
Case symbol: CooldownAndClock
Source: Tests/GridLightningTests.cpp:66

Test
Checks geographic cooldown survives grid refresh/shift, recovers on schedule and avoids a backlog after resume.
Source check messages (including original failure wording)

  • valid scheduled event failed
  • full refresh/grid shift forgot geographic discharge cooldown
  • discharge neighborhood did not recover
  • resume replayed a lightning backlog
  • invalid elapsed time accepted
  • connection/W0 reset retained cells
  • busy storm forgot active cooldowns after eight strikes
  • burst cooldown expired too early
  • expired burst cooldowns never recovered
  • strike rate depends on frame frequency
  • RNG fixture failed
  • lightning scheduler changed shared gameplay RNG

Benchmark

Fixture: Grid Lightning tests
Case symbol: Benchmark
Source: Tests/GridLightningTests.cpp:119

Test
Benchmark: weather weights were rebuilt every frame.
Source check messages (including original failure wording)

  • weather weights were rebuilt every frame