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

Performance #2321

Closed
trusktr opened this issue Dec 12, 2014 · 7 comments
Closed

Performance #2321

trusktr opened this issue Dec 12, 2014 · 7 comments

Comments

@trusktr
Copy link

trusktr commented Dec 12, 2014

The following WebGL globe example seems to have a higher/smoother frame rate than Cesium: http://thematicmapping.org/playground/webgl/earth/

Why might this be? Any techniques Cesium can adopt?

@pjcozzi
Copy link
Contributor

pjcozzi commented Dec 12, 2014

Thanks for the note. I didn't turn off browser vsync, but both are pinned at 60 fps for the default view on my MacBook Pro.

The difference is this example is just a sphere with a few textures; Cesium is a full globe engine so, for example, as you zoom in, Cesium loads higher-resolution data.

@trusktr
Copy link
Author

trusktr commented Dec 13, 2014

I'm noticing the very slight lag just from rotating without zooming. Maybe it's the way the sphere gets drawn? Perhaps the frame rate is still 60fps, but the calculation of the time step is off so that less than 60fps are drawn? (those are just ideas, but it could be any number of things). I definitely notice it. The small lag that I notice seems about the same from desktop to mobile (i.e. the amount of responsiveness isn't diminishing from desktop to mobile). It's hard to describe, but I can notice it with my eyes, a slight jump between each frame, that I don't notice with the other example.

@trusktr
Copy link
Author

trusktr commented Dec 14, 2014

I just had my friend test on Nexu 6, and he noticed the chop in the graphics too. My gut feeling says it's not a problem with browser rendering since it's just a sphere with some textures on it, and we're not zooming in or out to load different textures, but I could be wrong.

Is there an option to specify how many polygons (or similar) to use?

@pjcozzi
Copy link
Contributor

pjcozzi commented Dec 30, 2014

Closing. We're doing some optimizations as part of #2179.

@pjcozzi pjcozzi closed this as completed Dec 30, 2014
@trusktr
Copy link
Author

trusktr commented Dec 31, 2014

Cool, looking forward to it. I was trying these demos on my phone for reference, and they run buttery smooth, so I know cesium should be able to also since it's just a sphere in it's basic form (how WebGLEarth uses it):

@trusktr
Copy link
Author

trusktr commented Oct 5, 2021

Nice, it's been a while, and this issue has since been fixed. The rotation/pan animation is smoooooth.

@lilleyse
Copy link
Contributor

lilleyse commented Oct 5, 2021

I'm noticing the very slight lag just from rotating without zooming.

Yup, this was fixed in #8811

Fixed what seemed like a kludge in the camera panning code which had the side effect of panning every other frame. Basically panning felt like 30hz while other camera controls felt like 60hz. Panning feels so much smoother now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants