Performance Degradation Issue after Continuous Tile Loading in Earth Viewer #201
Replies: 5 comments 11 replies
|
I should wait for @gwaldron to comment. I'm planning on running a memory survey in the next few weeks. I haven't dug into the tile memory pattern used by Rocky yet. I should also mention that implementing a local cache for tiles is prohibited by some licenses. I'm very interested to hear what @gwaldron has to say. |
|
Our usage is legal according to the terms and conditions provided by the tile provider. The tiles are stored locally, both elevation and imagery, and the setup is exactly like the at_sample, with the only difference being that the tiles are loaded from a local source instead of a server. A timer has been implemented that rotates the camera around a fixed point — just like a person standing on the ground and slowly turning around in place. When elevation tiles were enabled, the system memory usage increased from about 1 GB to 4 GB over the course of one day, and the application became extremely slow. I didn’t analyze any logs at the time, but when I disabled the elevation data, the program immediately returned to normal speed. After enabling it again, the issue reappeared. For testing, I completely disabled elevation tiles, and after three days the application became only slightly slower than normal and memory usage did not change — but this was not even comparable to the slowdown seen when elevation tiles were active. However, the issue still exists, and I don’t know whether there is any difference between loading tiles from a server versus loading them locally. |
|
It does sound like a slow leak to me. |
|
I’m loading information from a JSON file and I haven’t set any specific configuration regarding the elevation data type. {
"map" : {
"name" : "local map",
"layers": [
{
"name": "OpenStreetMap local Imagery",
"profile": "spherical-mercator",
"uri": "/media/sw/map/map/{z}/{x}/{y}.jpeg",
"type": "TMSImage"
},
{
"name": "OpenStreetMap Elevation",
"profile": "spherical-mercator",
"type": "TMSElevation",
"uri": "/media/sw/map/elevation_tiles/{z}/{x}/{y}.png",
"encoding": "terrarium"
}
]
},
"profile" : "global-qsc"
}Also, I don’t think the slowdown issue is related to memory usage — maybe these two topics should be discussed separately. |
|
@gwaldron please check this issu or help me to handel it |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I’ve encountered a problem in my application where the globe, map tiles, and elevation data are displayed. I placed a fixed point on the Earth’s surface and rotate the camera around that point using a timer so that the entire globe becomes visible through rotation. Naturally, as new regions come into view, new tiles are loaded.
I used to perform this process before, and after 10-13 hours the application would crash — as I mentioned in issues #194. Now, the app no longer crashes, but after two days of running continuously, its performance drops drastically and becomes very slow.
While the app was running, I went into the settings and disabled elevation tile rendering. The application immediately returned to its normal speed. When I re‑enabled tile rendering, the performance remained good — until roughly another 24 hours passed, after which the slowdown occurred again.
I’m not sure if I need to collect any specific logs or data, but this is the issue I’ve been facing.
All reactions