Data streaming: Levels of detail
This section discusses the Levels of detail (LOD) datasets (from Gaia DR2 on) where not all data fits into the CPU memory (RAM) and especially the GPU memory (VRAM).
In order to solve the issue, Gaia Sky implements a LOD structure based on the spatial distribution of stars into an octree. The culling of the octree is determined using a draw distance setting, called . is actually the minimum visual solid angle (as seen from the camera) of an octant for it to be observed and its stars to be rendered. Larger values lead to less octants being observed, and smaller values lead to more octants being observed.
Balancing the loading of data depends on several parameters:
The maximum java heap memory (set to 4 Gb by default), let’s call it maxheap.
The available graphics memory (VRAM, video ram). It depends on your graphics card. Let’s call it VRAM.
The draw distance setting , .
The maximum number of loaded stars, . This is in the configuration file (
$GS_CONFIG/global.properties) under the key
scene.octree.maxstars. The default value balances the maximum heap memory space and the default data set.
So basically, a low (below 50-60 degrees) means lots of observed octants and lots of stars. Setting very low causes Gaia Sky to try to load lots of data, eventually overflowing the heap space and creating an
OutOfMemoryError. To mitigate that, one can also increase the maximum heap space.
Finally, there is the maximum number of loaded stars, . This is a number is set according to the maxheap setting. When the number of loaded stars is larger than , the loaded octants that have been unobserved for the longest time will be unloaded and their memory structures will be freed (both in GPU and CPU). This poses a problem if the draw distance setting is set so that the observed octants at a single moment contain more stars than than . That is why high values for are recommended. Usually, values between 60 and 80 are fine, depending on the dataset and the machine.
Draw distance, minimum visual solid angle for octants to be rendered
Maximum number of stars in memory at a given time