5 second refresh for Persistance mode was confusing people

so the few that use it with a huge amount of tracks will have to suffer
some lags.
This commit is contained in:
Matthias Wirth
2020-01-15 16:38:07 +01:00
parent 3103e50788
commit 975bbb2a1a

View File

@@ -264,11 +264,7 @@ function setupPlane(hex, plane) {
function fetchData() {
clearTimeout(refreshId);
if (noVanish) {
refreshId = setTimeout(fetchData, 5000);
} else {
refreshId = setTimeout(fetchData, RefreshInterval);
}
refreshId = setTimeout(fetchData, RefreshInterval);
if (PendingFetches > 0)
return;
for (var i in FetchPending) {
@@ -713,7 +709,7 @@ function init_page() {
// Force map to redraw if sidebar container is resized - use a timer to debounce
$("#sidebar_container").on("resize", function() {
clearTimeout(mapResizeTimeout);
mapResizeTimeout = setTimeout(updateMapSize, 10);
mapResizeTimeout = setTimeout(updateMapSize, 20);
});
filterGroundVehicles(false);