Skip to content

feat: Terrain conforming particles - #3245

Draft
stephanmeesters wants to merge 7 commits into
TheSuperHackers:mainfrom
stephanmeesters:feat/terrain-conforming-particles
Draft

feat: Terrain conforming particles#3245
stephanmeesters wants to merge 7 commits into
TheSuperHackers:mainfrom
stephanmeesters:feat/terrain-conforming-particles

Conversation

@stephanmeesters

@stephanmeesters stephanmeesters commented Sep 1, 2026

Copy link
Copy Markdown

Merge by rebase

This adds a new render method for particles by allowing them to be terrain conforming. This feature can be enabled for a particle system by using the new INI option IsGroundConforming. The feature as a whole can be enabled/disabled by using the new define ENABLE_TERRAIN_CONFORMING_PARTICLES. It has been integrated with Mauller/Ronin's particle batching.

Design decisions -- todo

Testing

This can be tested by building Patch2 with a modification to particle systems see the data PR.

Alternatively, you can cherry-pick this commit:

git cherry-pick 22dcc0eed

Or use this test build which force-enables the terrain conforming particles.

Performance impact

The test build was used to test a moderately heavy scene (3 nuke cannons + 3 nukes shooting at a hill in Alpine Assault) using a Macbook Pro 2013 base spec aka Potato, which showed a 5.5% average FPS loss.

Test results
Graphics Settings Resolution Mode FPS
Lowest 800x600 Batching 56
Lowest 800x600 No Batching 55
Lowest 800x600 Conforming disabled 57
Very High 800x600 Batching 50
Very High 800x600 No Batching 49
Very High 800x600 Conforming 53
Low 1920x1080 Batching 24
Low 1920x1080 No Batching 24
Low 1920x1080 Conforming 24
Very High 1920x1080 Batching 20
Very High 1920x1080 No Batching 18
Very High 1920x1080 Conforming 22
Very High 3072x1920 Batching 8
Very High 3072x1920 No Batching 8
Very High 3072x1920 Conforming 9

Image gallery

Screenshot From 2026-09-01 19-46-07
More Screenshot From 2026-09-01 19-46-52 Screenshot From 2026-09-01 19-47-39 Screenshot From 2026-08-22 17-29-21

Todo

@stephanmeesters stephanmeesters added Enhancement Is new feature or request Gen Relates to Generals ZH Relates to Zero Hour Rendering Is Rendering related labels Sep 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Enhancement Is new feature or request Gen Relates to Generals Rendering Is Rendering related ZH Relates to Zero Hour

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants