Skip to content

Add Foliage Rewrite plugin - #149

Merged
viktor-ferenczi merged 1 commit into
StarCpt:mainfrom
WhiteFang34:main
Jul 8, 2026
Merged

Add Foliage Rewrite plugin#149
viktor-ferenczi merged 1 commit into
StarCpt:mainfrom
WhiteFang34:main

Conversation

@WhiteFang34

Copy link
Copy Markdown
Contributor

On RTX 50-series GPUs, Space Engineers can crash to desktop with a graphics-device error (DXGI device-removed) whenever grass and foliage are on screen. Foliage Rewrite replaces the engine's geometry-shader foliage pipeline with a compute-shader path that draws the same grass with no geometry shader, removing the crash trigger. The result matches vanilla: the same blades, wind sway, density, and draw distance.

Controls

  • Ctrl+F8 toggles the rewrite on/off.
  • Grass draw distance, density, and distance-density sliders in the plugin settings cog.

Compatibility

Client-side rendering only — no world or network state, safe on any server without server-side install, can't cause desync.

@charliez0

Copy link
Copy Markdown

Interesting but I'm 5070ti, how to reproduce crashes on my device

@WhiteFang34
WhiteFang34 marked this pull request as ready for review July 8, 2026 03:41
@WhiteFang34

Copy link
Copy Markdown
Contributor Author

@charliez0 Mine would usually crash within an hour of being on the earth-like planet with any grass density above 0. My testing was only with a 5090 though.

@viktor-ferenczi

Copy link
Copy Markdown
Collaborator

Dual 4090 here, so cannot test. But reviewing it and merging ASAP.

@viktor-ferenczi

viktor-ferenczi commented Jul 8, 2026

Copy link
Copy Markdown
Collaborator

Review looks good.

Notes for further refinement:

  • If you have a chance, then please test it on Pulsar for Linux as well. If not required on Linux (DXVK translates DX11 to Vulkan), then mark the plugin Windows only. If would be required, but not working on Linux, then either port it or mark the plugin Windows only. Thanks.
  • Could you please also test whether it works on .NET 10 as well (Pulsar Interim) on Windows? I guess it will just work out of the box, but it must be tested. If not working, then it would be nice to fix it.
  • Can Ctrl+F8 conflict with any other plugin or mod? Can this hotkey be disabled in the plugin's config? If not, it may be worth it to disable by default and make it optional by enabling the hotkey in config.

Approving for now, so we can start receiving feedback from the 3 players with a 5090 out there.

@viktor-ferenczi
viktor-ferenczi merged commit ef17116 into StarCpt:main Jul 8, 2026
1 check passed
@WhiteFang34

Copy link
Copy Markdown
Contributor Author

@viktor-ferenczi:

  • I'll give Linux a try the next time I boot with it, been a while.
  • I verified that Pulsar Interim works. I haven't yet verified Pulsar Legacy.
  • The hotkey can't be configured or disabled yet, I'll follow up on that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants