osrf / gzweb

Web client for Gazebo classic simulation
http://gazebosim.org/gzweb
Other
63 stars 60 forks source link

Why is gazebo running smoothly and gzweb too laggy. Is there a problem with my use? Can someone answer it? thank you #240

Closed HEFUHUI closed 7 months ago

HEFUHUI commented 2 years ago

Why is gazebo running smoothly and gzweb too laggy. Is there a problem with my use? Can someone answer it? thank you

codebot commented 2 years ago

Can you describe your use case in more detail? For example, what kind of robot(s), what kind of environment, what size of model(s) in terms of links and mesh complexity, etc.

HEFUHUI commented 2 years ago

It's very complicated. It's a small car. It's made up of 77 components. It has the function of walking and grabbing objects. It is currently in gazebo_ It is very smooth in client, but too laggy in gzweb

codebot commented 2 years ago

In general, WebGL and web browsers generally will have reduced performance rendering complex models, as opposed to "normal" desktop applications, because browser-based applications have to run in a sandbox with many restrictions. I would suggest trying to reduce the polygon count as much as possible, as an experiment, to see if that helps. Skilled 3D artists can do amazing tricks so that complex-looking models can be represented by very few polygons.

How many triangles are currently in your meshes?

HEFUHUI commented 2 years ago

More than 80