Skip to content

Reduce CPU usage when Distant Horizons is present #17

@Excederus

Description

@Excederus

Is your feature request related to a problem? Please describe.
Using C2ME and DH together in more modded scenarios without changing any config causes massive lagspikes during vanilla chunk generation even on lower/reasonable view distances like 12. This is most likely caused by CPU usage, since my CPU is pinned to 100% all the time when generating chunks no matter DHs CPU Load setting. Reducing DHs CPU Load to Minimal Impact eliminates the FPS drops during initial generation but still causes minor to medium stutters while moving. Using ZGC also only helped a bit.

Describe the solution you'd like
When C2ME detects that DH is installed reduce the amount of CPU resources allocated to C2ME/chunk generation to prevent the CPU from getting pinned to 100% and causing FPS Drops/Stutters

Describe alternatives you've considered
Right now I don't think there really is an alternative to just removing either C2ME or DH

Additional context
Ryzen 5 7600X - 32GB 6000MHz RAM (8GB allocated to MC) - RTX 2070 - NVME
Currently testing with 65 mods (excluding libraries) however I observed that the performance issues get worse with each mod added. I previously had an instance with around 150 mods where simply walking in one direction caused FPS drops/Stutters to 10fps.

Some tests I did:
Any combination other than C2ME + DH: 130fps - 110fps (gradually decreasing with visible chunks)
C2ME + DH: 20fps during generation - jumps to 110fps when vanilla generation is done

Tests done at 32 view distance, 32 simulation distance, 256 LOD distance, Balanced DH CPU Load, Bliss Shaders

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions