Code Monkey home page Code Monkey logo

Comments (8)

junkdog avatar junkdog commented on May 18, 2024

I adapted the existing artemis-odb benchmarks to work against ashley and gdx-artemis a couple of days ago: https://github.com/junkdog/entity-system-benchmarks - it still requires a little more work; benchmarking entreri, pooling in ashley, some more specialized benchmarks etc, but it's a start.

from ashley.

andresaraujo avatar andresaraujo commented on May 18, 2024

@junkdog looks promising! I am impressed with ashley

from ashley.

dsaltares avatar dsaltares commented on May 18, 2024

Oh that's very useful @junkdog!

Correct me if I'm wrong, the higher the score the faster the system is? The fact that is not measured in time hints that such is the case. However, I don't want to get too excited with Ashley just yet!

from ashley.

junkdog avatar junkdog commented on May 18, 2024

No, sorry, it measures average execution in microseconds; so per world/engine update cycle. Raw logs are in the results folder.

I'm guessing it's due to the heavy usage of IntMaps (unless I made a major screw-up while writing the benchmarks). Gdx-artemis uses Array<Array<T>> and it performed similarly to artemis-odb: it might be that the array-of-arrays approach is a necessary pattern in regards to performance, unless IntMap can be optimized somehow. I haven't profiled it though, so it's possible the bottleneck lies elsewhere.

from ashley.

dsaltares avatar dsaltares commented on May 18, 2024

I'm going to profile a game made with Ashley to see what's taking so long. It could be all the IntMaps. Thanks for the clarification and the hint!

from ashley.

andresaraujo avatar andresaraujo commented on May 18, 2024

Not sure about that @siondream, I did a quick profile of ashley jumper and the bottle neck seemed to be com.badlogic.gdx.utils.Array.sort( Comparator ) but I did not see anything wrong with IntMaps, again it was a quick profile

from ashley.

dsaltares avatar dsaltares commented on May 18, 2024

I did the same check and, indeed, the most prominent thing was the sort. Maybe if we got rid of that, something else would show up.

I'm going to try play around with Caliper and see what happens if I change some stuff.

from ashley.

dsaltares avatar dsaltares commented on May 18, 2024

Added in d6fec98

from ashley.

Related Issues (20)

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.