Announcement

Collapse
No announcement yet.

Improve 2D performance at least to the level of Unity 3D

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Improve 2D performance at least to the level of Unity 3D

    Tappy Chicken should run at 60 fps in an iPhone 4.

    #2
    As far as I know, Tappy Chicken isn't completely 2D. The game was created using static meshes.

    source: https://forums.unrealengine.com/show...d-or-Tutorials
    Last edited by Snipe; 03-25-2014, 10:29 PM.

    Comment


      #3
      Originally posted by Snipe View Post
      As far as I know, Tappy Chicken isn't completely 2D. The game was created using static meshes.
      No 2d game nowadays is 2d, they're quads (or polys with a shape close to the sprite) with textures on them. It's exactly like that in Unity.

      This is a game I made in Unity: http://m.youtube.com/watch?v=x6-5D6IkD5E. I'd like to be able to do something similar in UE but the performance I'm seeing so far is not reassuring.
      Last edited by alexr; 03-25-2014, 10:38 PM.

      Comment


        #4
        Why on earth would you use f*** Unreal Engine to make crappy bird clones?!?! Or any kind of 2D game; I really can’t see why to use UE for this kind of ‘game’(urgh).
        | Savior | USQLite | FSM | Object Pool | Sound Occlusion | Property Transfer | Magic Nodes | MORE |

        Comment


          #5
          Because you'd get a simple way to do things way outside normal sprite animation.

          If you take a look at the video I posted above you'll see that all characters are rigs (there's a skeleton of sprites for each character), it's 2.5d, etc.

          There are plenty of use cases for using a 3d engine for 2d games. Unity and Epic seem to think so too, since Unity now boasts its own 2d plugin (integrated in the engine) and UE has an experimental plugin called Paper2d.

          Comment


            #6
            Bruno, no reason to be so disparaging sir! I am sure there are quite a few 2D games that you appreciate. No need to limit folks who have a cool idea for a game they want to bang out in UE4, no matter how many dimensions it takes place in! =)

            Alexr, we have quite a lot of 2D enthusiasts in-house (both as players and creators.) You are not alone in your desire to see 2D running super well on a broad range of mobile devices.

            I'll try to see if I can get one of our mobile guys to make a guest appearance, but you may have better (faster) luck getting a direct response from them by moving it over to the iOS section of the forums. =)
            Jonathan Taylor - producer @ Epic games
            https://twitter.com/EPICJonT

            Comment


              #7
              Originally posted by BrUnO XaVIeR View Post
              Why on earth would you use f*** Unreal Engine to make crappy bird clones?!?! Or any kind of 2D game; I really can’t see why to use UE for this kind of ‘game’(urgh).
              Cheaper price? Preferable GUI? Programming made simple with Blueprints? There are quite a lot of reasons someone would...

              Comment


                #8
                Originally posted by JoTay View Post
                Bruno, no reason to be so disparaging sir! I am sure there are quite a few 2D games that you appreciate. No need to limit folks who have a cool idea for a game they want to bang out in UE4, no matter how many dimensions it takes place in! =)
                You are right. Sorry about that; There are 2D games I love, from the SNES era. Still I can’t see why so many want to make another flappy bird. If for just learning purposes I can understand though.
                | Savior | USQLite | FSM | Object Pool | Sound Occlusion | Property Transfer | Magic Nodes | MORE |

                Comment


                  #9
                  Originally posted by BrUnO XaVIeR View Post
                  You are right. Sorry about that; There are 2D games I love, from the SNES era. Still I can’t see why so many want to make another flappy bird. If for just learning purposes I can understand though.
                  I agree, the Flappy Clone space is pretty washed out now and learning purposes are always a big thing. Before I started poking around in examples, I had no idea that it was the pipes moving D:

                  Comment


                    #10
                    Originally posted by BrUnO XaVIeR View Post
                    You are right. Sorry about that; There are 2D games I love, from the SNES era. Still I can’t see why so many want to make another flappy bird. If for just learning purposes I can understand though.
                    Tappy Chicken exists in the market place as a demo... Hence he's using that as an example.

                    Comment


                      #11
                      Originally posted by MCam View Post
                      Tappy Chicken exists in the market place as a demo... Hence he's using that as an example.
                      Yes, I thought that was clear, but apparently my post made me look like a Flappy Bird lover . I make no judgement whatsoever on the merits of any game. I simply want to make 2D games using UE and the performance I'm seeing on a 2D example (Tappy Chicken) isn't sufficient for me to consider UE right now.

                      Price and speed (Mono just sucks sometimes... I hate the GC) are what makes me consider UE instead of Unity. The price of UE is fantastic, the speed (at least in 2D) still isn't.

                      Comment


                        #12
                        Originally posted by alexr View Post
                        Yes, I thought that was clear, but apparently my post made me look like a Flappy Bird lover . I make no judgement whatsoever on the merits of any game. I simply want to make 2D games using UE and the performance I'm seeing on a 2D example (Tappy Chicken) isn't sufficient for me to consider UE right now.

                        Price and speed (Mono just sucks sometimes... I hate the GC) are what makes me consider UE instead of Unity. The price of UE is fantastic, the speed (at least in 2D) still isn't.
                        I knew exactly where you were coming from, because I'm in the same boat

                        Comment


                          #13
                          what device are you running on and what is the average fps?

                          Comment


                            #14
                            Originally posted by slayeruk View Post
                            what device are you running on and what is the average fps?
                            Between 30 and 40fps on an iPhone 4.

                            Two things worry me about Tappy Chicken, the fps and the CPU usage (between 40 to 70% on an iPhone 4). I haven't even began to look at Tappy Chicken under the hood, so I don't know what type of shaders it's using (perhaps it's possible to reach 60 fps easily, by just changing shaders), but that kind of CPU usage is also worrisome, since a game like this should take 20 to 30% CPU tops.

                            I'll test on better hardware eventually, but iPhone 4 like hardware is still very common and a large piece of my market share. It's also a good benchmark device, so I'll probably see these performance differences between UE and Unity even on higher end hardware. For games like Flappy Bird it won't matter, but I'd hate to be limited by an engine's performance with more complex scenarios.

                            Ideally I'd like the same performance with UE, as if I was writing an app in Objective C or C++. With Unity it gets pretty close in some scenarios (minus memory usage), with UE it should be possible to get even closer to this goal.

                            Comment


                              #15
                              The major problem is GPU (27 ms per frame), but even if I got that down to 16.6, Tappy Chicken would still be CPU bound (20 ms CPU per frame). I'll stick with Unity for the time being, but I'll keep improving my know how in UE, since I believe it's possible to improve mobile performance a lot in this engine.

                              Comment

                              Working...
                              X