Skip to content

Terrain scorches have tight hardcoded limit #179

Description

@xezon

Terrain scorches have tight hardcoded limit via BaseHeightMapRenderObjClass::Update_Scorches:

if (m_curNumScorchVertices >= 8194) {
  return;
}
...
if (m_curNumScorchIndices + 6 > 49164) {
  return;
}
...

Assuming a larger scorch takes about 42 vertices on terrain grid, then it will take just 195 scorches to fill up the scorch buffer.

shot_20230214_190312_1

Old scorches will then be removed and new scorches will draw.

Terrain scorches do not appear to have detrimental impact on performance. Here is empty scene with many scorches. Framerate is high with more than 900 FPS.

shot_20230214_191448_2

Perhaps can expose scorch limits to GameData.ini, perhaps scale with System Settings too, aka Low Graphics less, Medium Graphics more, High Graphics max scorches.

Metadata

Metadata

Assignees

Labels

EnhancementIs new feature or requestMinorSeverity: Minor < Major < Critical < BlockerZHRelates to Zero Hour

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions