WEll... I'd propose another solution BEcasue I ebt you still ahve rpoblems :P (we programmers always have rpobelms, you know) This is an algorthm Id eveloped 1 decade ago on good old QuickBAsic 4.5 (tm I think) ....
I create an array of supspaces (a big space contains a series of supspaces) those supspaces are a partition of the collection. (that means no subspace shares anything between, no rpeated space, but all compelte the space. I recomend multiples of 3 for each of the idmensions: 3*3*3 boxes form the unveerse, which would be 27 boxes, I'd recomend 12*12*12 for the first layer.
Now you can use -relative- coordinates to the center of each subspace. Whe your ship travels, you need to load 27 subspaces at once (the one you're on all and the surrounders) each coordinate woudl now be of 4 components, x,y,z and Subspace.
If numebrs are still to big, I recomend a largesubs ystem of 30*30*30 or a second layer of subspaces, which would be more complicated.
a mutidmiensional array could use a subspace of 60000,60000,60000 with no problems (except RAM, that'd be LOTS of MB) 120*120*120 should suffice.
I hope someone undrstands mi blabbering.
I create an array of supspaces (a big space contains a series of supspaces) those supspaces are a partition of the collection. (that means no subspace shares anything between, no rpeated space, but all compelte the space. I recomend multiples of 3 for each of the idmensions: 3*3*3 boxes form the unveerse, which would be 27 boxes, I'd recomend 12*12*12 for the first layer.
Now you can use -relative- coordinates to the center of each subspace. Whe your ship travels, you need to load 27 subspaces at once (the one you're on all and the surrounders) each coordinate woudl now be of 4 components, x,y,z and Subspace.
If numebrs are still to big, I recomend a largesubs ystem of 30*30*30 or a second layer of subspaces, which would be more complicated.
a mutidmiensional array could use a subspace of 60000,60000,60000 with no problems (except RAM, that'd be LOTS of MB) 120*120*120 should suffice.
I hope someone undrstands mi blabbering.