Coder Social home page Coder Social logo

crazy slow about reflexityai HOT 6 CLOSED

fbast avatar fbast commented on July 27, 2024
crazy slow

from reflexityai.

Comments (6)

FBast avatar FBast commented on July 27, 2024 1

A large bug with QueueAI coroutine starting for every ai in the game (instead of one coroutine for all ai) were causing a huge drop in fps, now it's totally fine, you can use the benchmark to try it.

from reflexityai.

FBast avatar FBast commented on July 27, 2024

Hi laurentopia, in a previous version I used async treatment and queuing stack to optimize reflexions, this way I could mitigate CPU overload with a larger time between each individual reflexion. I have rollback this update for multiple bug encounter, now GC Alloc is at his minimum value and optimization can only be reached (in my pov) with async optimization. I will take a day or two for a large optimization commit, but I can't find any time for now. This project is largely based on reflection so it can be a pain in the ass to optimize correctly. If you want to fork it and try an optimization commit feel free to do. I'm interested by your results.

from reflexityai.

FBast avatar FBast commented on July 27, 2024

In fact i also remember using node data cache to prevent fetching reflection data but i rollback it too =/

from reflexityai.

laurentopia avatar laurentopia commented on July 27, 2024

Well done.
Are all the cubes running full AI on each frame?

from reflexityai.

FBast avatar FBast commented on July 27, 2024

An AI will run full process when his turn come on the queue, this mean that the more AI you use, the more the time between each of his reflexion is long. This allow to use a lots of AI with no framerate drops.

from reflexityai.

laurentopia avatar laurentopia commented on July 27, 2024

A load balancer, this is nice. Can they be prioritized by proximity to the camera?

from reflexityai.

Related Issues (5)

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.