Skip to content
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

Drag Mousemove DROP FRAME since 1.93 #11902

Open
zxj5470 opened this issue Mar 27, 2024 · 3 comments
Open

Drag Mousemove DROP FRAME since 1.93 #11902

zxj5470 opened this issue Mar 27, 2024 · 3 comments

Comments

@zxj5470
Copy link

zxj5470 commented Mar 27, 2024

What happened?

Simply drag the earth, zoom in slightly, then drag, and then find that there are some frames dropped.
I use dichotomy to find out where there is a problem.

I Use CDN to change Cesium verion and find the major version is 1.93 and build from source to find the problem commit became since [4a37d34]

sample codes:

<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>

    <!-- <script src="https://cdnjs.cloudflare.com/ajax/libs/cesium/1.92.0/Cesium.js"></script> -->
    <script src="https://cdnjs.cloudflare.com/ajax/libs/cesium/1.93.0/Cesium.js"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/cesium/1.93.0/Widgets/widgets.min.css"/> 
</head>

<body>
    <div id="cesiumContainer"></div>
    <script>
        const viewer = new Cesium.Viewer("cesiumContainer", {
            imageryProvider: new Cesium.UrlTemplateImageryProvider({
                url: "https://a.tiles.mapbox.com/v4/mapbox.satellite/{z}/{x}/{y}.jpg?access_token=pk.eyJ1IjoienhqNTQ3MCIsImEiOiJja2N5bW9kcHEwYmRxMzFvdXVmbjhnbWh3In0.LA4oFRuHdvDBu558A-ux5Q",
            })
        });
    </script>
</body>

</html>

image

Reproduction steps

  1. open sandcastle website
  2. full screen
  3. zoom to this aspect

image
...

Sandcastle example

https://sandcastle.cesium.com/

Environment

Browser: Chrome 120
CesiumJS Version: since 1.93.0
Operating System: Windows 10

@ggetz
Copy link
Contributor

ggetz commented Mar 27, 2024

Thanks for the report @zxj5470.

We made some improvements here in #10510. Would you mind visiting
webglreport.com and taking a screenshot of your results to help us understand your specs?

@ggetz ggetz added needs feedback On hold until additional info is supplied and removed needs triage labels Mar 27, 2024
@zxj5470
Copy link
Author

zxj5470 commented Mar 28, 2024

Well, so the bug since 1.93 has been fixed in 1.104 or 1.105 ?
But I try to change version to 105/106, the FPS is still aroud 50 by default code.
maybe I need to close atmosphere settings?

And try the latest version in sandcastle
(https://sandcastle.cesium.com/ latest version 1.115.0)

const viewer = new Cesium.Viewer("cesiumContainer");
viewer.scene.debugShowFramesPerSecond=true

still around 50 FPS

image

CPU: AMD Ryzen™ 5 4500U
GPU: Integrated
image

webglreport https://webglreport.com/

image
image

@ggetz
Copy link
Contributor

ggetz commented Apr 1, 2024

Thanks for the info @zxj5470!

We'll evaluate what more we can do to improve performance here. In the meantime, you can disable the atmosphere.

@ggetz ggetz added category - memory/performance and removed needs feedback On hold until additional info is supplied labels Apr 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants