Giter Site home page Giter Site logo

Performance issues about atlantis HOT 3 CLOSED

ravaelles avatar ravaelles commented on August 18, 2024
Performance issues

from atlantis.

Comments (3)

haopan27 avatar haopan27 commented on August 18, 2024

I've encountered something similar.

I got rid of all the System.out. stuff but the game still runs slowly after the first few minutes. In other words, there were no single numbers or "RunTo" errors. I've got a 'clean' log in the eclipse console:

Game table mapping not found.
Game table mapping not found.
0 | 7208 | 0 | 1127704875
1 | 0 | 0 | 0
2 | 0 | 0 | 0
3 | 0 | 0 | 0
4 | 0 | 0 | 0
5 | 0 | 0 | 0
6 | 0 | 0 | 0
7 | 0 | 0 | 0
Connected
Connection successful
Connection successful, starting match...
Waiting...
Game ready!!!
Analyzing map... Map data ready.

Disconnected

from atlantis.

Purinho avatar Purinho commented on August 18, 2024

runTo and system prints do not cause the big issues

2 methods cause a lot of issues:

  1. Select.enemy() is called a lot, whenever a combat is going on. the method will create a list of all enemy units with each call (and there may be many calls per frame, and many units to put into the list, ...)
  2. Select.nearestTo() and all of its internal sorting is called a lot, whenever a combat is going on

I guess buffering the data of one or both of those methods may increase performance a lot

from atlantis.

Ravaelles avatar Ravaelles commented on August 18, 2024

Latest Atlantis version is using caching to fix this issue. Now the only performance issues I know of are related to trying to find a place for a building and failing to do so. Even then it is quite good on my machine.

from atlantis.

Related Issues (15)

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.