Spaceblock Memory Fix


Patch beacons to use less memory

7 months ago
1.1
643

Changelog

Space block consumes an enormous amount of memory - because it allocates 65535 slots for every beacon. These are invisible beacons.
This was discovered by Perfect Will - this mod patch's the beacons so alot less memory is used.

Version: 0.3.9   <- same version as the space block that has the memory leak
Date: 2024-03-09
  Bug Fix:
    - fix memory leak in Space Block 0.3.9
Version: 0.3.901
Date; 2024-03-19
    Change to fixed setting of 4 for beacon module slots - host can configure in mod settings 4..65535
    This has impact on how high productivity can go (40% maxing at 655,350% after 65535 progressively
    more expensive research - that might take you years of playing to reach - ya infinite !
    The game default of 65535 consumes an enormous amount of memory.
    We've found that with 4 players in Brave New Oarc and Space Block and separate bases, we'll quickly 
    consume 11 GB of memory within a few hours of play - not achieving a launch of a rocket. With this
    retricted to 4, we can have 21 players, five of which made enormous mega bases - and launching over
    1000 rockets, and a week of play and only using 3 GB of memory.  But 4 was wrong (previous release)
    as this enables you to increase productivity upto 40% and no further. So new default is 400 or 
    4,000% max after 400 levels of research. This is configurable by the host in mod settings.

    It is likely that 100 would be better default - but the pendulum of decision must swing.