-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Infinite scroll 2D is really slow with polygons #5026
Comments
@bagnell a number of users on the forum have been complaining about slow polygons when upgrading from 1.2x to 1.30+. Do you know of anything that changed that might have caused that? |
Also reported by @forest21000 in #7694 |
I am also seeing this same issue, even with MapMode2D.ROTATE enabled. Lower frame rate and higher CPU usage when 2D is compared to 3D. |
Hey folks. Running into a similar issue here. I'll preface this by saying I believe this only affects issues with I did a little debugging, and the following diff to diff --git a/packages/engine/Source/Scene/Scene.js b/packages/engine/Source/Scene/Scene.js
index e438fdf87e..e52b0d2723 100644
--- a/packages/engine/Source/Scene/Scene.js
+++ b/packages/engine/Source/Scene/Scene.js
@@ -3310,8 +3310,10 @@ function execute2DViewportCommands(scene, passState) {
}
camera._setTransform(transform);
- Cartesian3.clone(position, camera.position);
+ camera.position.x = position.x;
+ camera.position.y = position.y;
+ // camera.position.z = position.z;
camera.frustum = frustum.clone();
passState.viewport = originalViewport;
} Setting cesium/packages/engine/Source/Scene/Scene.js Lines 2614 to 2617 in 47b5d29
So this change performed in cc @ggetz |
This change also appears to fix #8302 (polyline zIndex issues in INFINITE_SCROLL mode)! |
The map is lags pretty badly in 2D infinite scroll mode. The performance is fine in 3D and is much better if you use the rotatable 2D map instead
vienna.geojson.txt
The text was updated successfully, but these errors were encountered: