Unity 3D vs libgdx: 2D performance



Did you read my previous post about 2D frameworks for Unity 3D? I was curious how their performance compares to my favourite framework for game development: libgdx.

Again, I tested everything on my Xperia Play (on iOS you'd get roughly similar performance using an iPhone 4). My test consists of a single background sprite (640x960 px, static) and three animated sprites (all frames were packed into a single atlas texture to reduce draw calls).
Every touch spawned 10 sprites, every second touch spawned another 100 sprites (randomly selected from these three types). Sprites go from the top of the screen to the bottom of it and are deactivated and reused later (except for the libgdx test, read below). Here are the results:

Sprite countOrthello 2Dex2DSpriteManager 1SpriteManager 2libgdx
5057 fps60 fps60 fps60 fps60 fps
10018 fps60 fps60 fps60 fps60 fps
1506 fps58 fps60 fps60 fps60 fps
2004 fps52 fps60 fps60 fps60 fps
3001 fps35 fps60 fps58 fps60 fps
5001 fps22 fps58 fps52 fps60 fps
10001 fps11 fps45 fps39 fps60 fps
1500-6 fps33 fps-59 fps
2000-4 fps26 fps-43 fps
3000--17 fps-33 fps

It's worth noting that the libgdx version was built in a rush and I didn't try very hard to optimize it (the sprites aren't even deactivated/reused, because LAZY). Still, the performance is pretty great - that's one of the reasons why I love libgdx!

26 Response to "Unity 3D vs libgdx: 2D performance"

  1. junkdog says:

    Heh, that is pretty impressive... It'd be nice to have the source for each test however.

    Were the Unity benchmarks run with the normal or Pro version? From what I understand, the normal version is a bit more restrictive (http://www.arcengames.com/forums/index.php?topic=8856.0). Not sure whether any of the 2d frameworks would benefit from the Pro version though...

    Calvin says:

    Can you share your Unity project? I want to compare/test the performance of a 2D library I'm working on.

    e-dog says:

    Oh, great. I was going to try libgdx, but I was worried about the performance on the Android device a bit.

    Libgdx all the way!

    limin says:

    If you don't stand for something you will fall for anything
    Good friends, good books, and a sleepy conscience: this is the ideal life
    mutant fighting cup 2
    manny pacquiao
    stardew valley wiki
    slither.io
    powerpuff yourself
    zumbi tsunami
    fishdom
    quotes about love
    chinese food near me
    snake game

    The best space for your child to relax!: wingsio | slither io | ya

    James says:

    This is really a pleasant and useful, containing all data furthermore greatly affect the new innovation. Much obliged for sharing it,
    Avriq India
    Avriq
    AVRiQ - Data Recovery
    AVRiQ Crunchbase
    Avriq Services
    Avriq Us

    a pride for me to be able to discuss on a quality website because I just learned to make an article on

    უპროცენტო სესხები uprocento sesxebi swrafi sesxi uprocento sesxebi | უპროცენტო სესხები | wingsio | wings io | y8 unblocked

    ===========
    sehzadi
    ===========
    Jaipur Escorts
    Jaipur Call girls
    Escort service in Jaipur

    ===========
    sweeti sinha
    ===========
    Jaipur Escorts
    Escorts in Jaipur
    Escort Services in Jaipur

    ===========
    saumyaa
    ===========

    Call girls in Jaipur
    Jaipur Call girls
    Jaipur escorts

    Hi guys! If you are alone and want female companionship, then please follow me on the links given below. I like to have sexual relationship daily with different persons. If you are interested in me. Go to the site and book your appointment to have intercourse with me on bed at night with full erotic entertainment.
    Click here ||Mumbai call girls||
    Click here ||Kolkata call girls ||
    Click here ||Kolkata Escorts||

    Click here ||Call girls in Mumbai||
    Click here ||Call girls in Kolkata ||
    Click here ||Escorts in Kolkata ||

    Click here ||Mumbai Escorts ||
    Click here ||Kolkata Escorts sercvice||
    Click here ||Escorts service in Kolkata||

    Hi guys! If you are alone and want female companionship, then please follow me on the links given below. I like to have sexual relationship daily with different persons. If you are interested in me. Go to the site and book your appointment to have intercourse with me on bed at night with full erotic entertainment.
    Click here ||Ecorts in Mumbai||
    Click here ||Kolkata call girls||
    Click here ||Call girls in Kolkata ||

    Click here ||Escorts in Mumbai||
    Click here ||Kolkata escorts||
    Click here ||Escorts in Kolkata||

    Click here ||Mumbai Escorts||
    Click here ||Escorts service in Kolkata||
    Click here ||Kolkata escorts service||

    Hi guys! If you are alone and want female companionship, then please follow me on the links given below. I like to have sexual relationship daily with different persons. If you are interested in me. Go to the site and book your appointment to have intercourse with me on bed at night with full erotic entertainment.
    Click here ||Mumbai call girls||
    Click here ||Kolkata call girls||
    Click here ||Kolkata escorts||

    Click here ||Call girls in Mumbai||
    Click here ||Call girls in Kolkata ||
    Click here ||Kolkata call girls||

    Click here ||Call girls in Mumbai||
    Click here ||Escorts in Kolkata||
    Click here ||Kolkata escorts service||

    ANIKARAI says:

    Hello, My Dearest Friends Super class independent Escorts Services available incall & outcall service in VIP hotels. and call girls available for booking 24x7 hours IF You want Physical Relationship any time contact me & ?meet with

    me to get my number from website and call
    Thank You & Visit Again""_____

    |Escorts In Gurgaon |
    |Escorts In Mumbai |
    |Call Girls In Gurgaon|

    |Call Girl In Mumbai |
    |Call Girl In Gurgaon |

    |Gurgaon Escorts |
    |Gurgaon Escorts |

    |Gurgaon Call Girl |
    |Call Girl In Andheri |

    |Gurgaon Call Girls |
    |Escorts In Gurgaon |

    |Escorts In Bangalore |
    |Call girls In Bangalore |

Prześlij komentarz

Powered by Blogger