Any chance Superhub can be redesigned to use smaller than the 4096x4096 texture file it currently uses?
Most of the texture appears to be black "dead space", so if it was all crammed together it looks like it'd fit in 2048x2048.
I had one Oolite crash that said it couldn't allocate 64 MB of memory for that texture alone. I attribute Superhub to be the largest contributor of the huge memory spikes I'm seeing from rapid wormhole-jumping. During rapid wormhole-jumping, the game seems to allocate memory for Superhub's massive texture file a few times over until garbage collection can "catch up".
Were the texture reduced to 2048x2048, it might fit within 16 MB of memory.
As for when to spawn Superhubs, I use this code:
Code: Select all
if(system.techLevel > 10 && system.economy < 4 && system.government > 4 && system.countShipsWithRole("pagroove_superhub") < 1) {
this.xOffset = (Math.random() * 10000) + 10000; // x offset between 10 and 20km
this.yOffset = (Math.random() * 10000) + 10000; // y offset between 10 and 20km
if(Math.random() > 0.5) this.xOffset = -this.xOffset; // 50:50 chance of offsetting in the other direction
if(Math.random() > 0.5) this.yOffset = -this.yOffset; // 50:50 chance of offsetting in the other direction
system.addShips("pagroove_superhub", 1, system.mainStation.position.add(Vector3D(this.xOffset, this.yOffset, 0).fromCoordinateSystem("abs")));
return;
}
I figure Communist systems would not allow such a capitalist-style station in their systems. Their Gulags and Factories are good enough for them.