GithubHelp home page GithubHelp logo

Comments (4)

chengzl18 avatar chengzl18 commented on August 26, 2024

Because the client incorporates assets and code that cannot be redistributed according to their EULAs, it is currently not released as raw assets and code but rather as executables. The executables are permanently free to use. We are considering reimplementing the restricted code or making the client open source in a modular way. The specific timeline has not yet been determined.

If you currently need certain features for the client, you can request a new feature. If you want to contribute to the client code, you can contact us. If you want to learn about the rendering part, it is extended from Unity URP, you can learn about it.

from legent.

generatemotion avatar generatemotion commented on August 26, 2024

thanks too much. The client start too slow, I find the server use gRPC , that means the client will poll, is that?

from legent.

generatemotion avatar generatemotion commented on August 26, 2024

could you share the client code to me, i want to study the implementation details

from legent.

chengzl18 avatar chengzl18 commented on August 26, 2024

The communication of gRPC is efficient, it should not be the reason.
I calculated the startup time with the following script:

from legent import Environment, ResetInfo, generate_scene
import time

start_time = time.time()
env = Environment(env_path="auto")
print(f"Launch Time: {time.time() - start_time:.2f}s")

scene = generate_scene()

start_time = time.time()
env.reset(ResetInfo(scene=scene))
print(f"Reset Time: {time.time() - start_time:.2f}s")

start_time = time.time()
for i in range(10):
    env.step()
print(f"Step Time: {(time.time() - start_time)/10:.2f}s/step")

env.close()

And the results are as follows:

Launch Time: 2.04s
Reset Time: 0.83s
Step Time: 0.02s/step

I would like to know how long it took to start on your machine? 2s is a normal startup time for a 3D environment, considering that the environment will be used for a long time after it starts, this should not be too much of an impact.

from legent.

Related Issues (6)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.