Better offline quality

Better offline quality

Return to topic list

Tue Feb 5 23:29:53 2019   by   Tim
Hi,

I wasn't sure if this had been answered in the past with but how can I get better resolution with the offline version of Planet Map Generator?
I currently have it set at 23k by 23k. Anything over that and i get "Memory allocation failed at (some random number) out of (some random number) cols".
I've seen it mentioned that I need to change my file format type but that doesn't seem to have made any difference.

Thanks in advance.
 
Wed Feb 6 10:24:34 2019   by   Torben
"Memory allocation failed" means that the program was not able to allocate more memory from the system.  This does not necessarily mean that you don't have enough memory, the program just couldn't get more of it.

For Windows, I used the Tiny C compiler to compile the generator.  I believe this uses a 32-bit memory model, which limits memory used by the program to less than 4GB (I don't recall how much less). At 23k23k pixels, you will hit that limit, as the program for each pixel allocates 16 bits for the colour,  16 bits for shading information, and three floating point numbers (364 bits) for (x,y,z) coordinates (used to calculate grid lines), so 28 bytes per pixel.  For 23k23k, this is roughly 14GB.  If you don't use grid lines, it uses "only" four bytes per pixel, so roughly 2GB.  But since not all of the 4GB address space is available for allocation, that might be enough to hit the limit.

If you have access to a better C compiler for Windows, you can recompile from the source using a 64-bit memory model, which allows for more memory.
 
Thu Feb 7 22:22:01 2019   by   Tim
Thanks,

Do you know of a better/64 Bit C compiler that I could try and use.

I have a beefy computer and would be tempted to see how detailed I could make the map.
 
Mon Feb 11 14:21:38 2019   by   Torben
I don't use Windows, so I'm not familiar with the choice of C compilers for Windows.  If GCC runs on Windows, that might be a possibility.  Microsoft's C compiler is another option, but I think it costs money.
 

Return to topic list



New message:
Topic:
Posted by:

Type the values of the dice shown below:

Return to topic list