[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-3' - wsd/DocumentBroker.cpp
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Oct 1 10:49:03 UTC 2018
wsd/DocumentBroker.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 6cbd1445cdc6451aa0a93cb8700fe967194228df
Author: Tamás Zolnai <tamas.zolnai at collabora.com>
AuthorDate: Wed Sep 26 22:15:41 2018 +0200
Commit: Jan Holesovsky <kendy at collabora.com>
CommitDate: Mon Oct 1 12:48:44 2018 +0200
Better to have a smaller tiles-on-fly limit
It's good if this limit big enough to send all the tiles of the
current visible area at once, so the tiles arrive at the same
time to the client by zoom or scroll. Now this value is set to a bit
bigger so if we have a small amount of tiles before zoom / scroll we'll
still see the same on the client side.
(cherry picked from commit a1e2acd5effb1c805f06c78040b71d30fb821be4)
Change-Id: I8e28dbf6197fe2f683fe9528e9a32c15a191b20e
Reviewed-on: https://gerrit.libreoffice.org/61128
Reviewed-by: Jan Holesovsky <kendy at collabora.com>
Tested-by: Jan Holesovsky <kendy at collabora.com>
diff --git a/wsd/DocumentBroker.cpp b/wsd/DocumentBroker.cpp
index 764054d1b..c6b589899 100644
--- a/wsd/DocumentBroker.cpp
+++ b/wsd/DocumentBroker.cpp
@@ -1406,7 +1406,7 @@ void DocumentBroker::sendRequestedTiles(const std::shared_ptr<ClientSession>& se
std::ceil(normalizedVisArea._y1 / session->getTileHeightInTwips()) + 1;
const int tilesInVisArea = tilesFitOnWidth * tilesFitOnHeight;
- tilesOnFlyUpperLimit = std::max(TILES_ON_FLY_MIN_UPPER_LIMIT, tilesInVisArea * 1.5f);
+ tilesOnFlyUpperLimit = std::max(TILES_ON_FLY_MIN_UPPER_LIMIT, tilesInVisArea * 1.1f);
}
else
{
More information about the Libreoffice-commits
mailing list