When comparing Unreal Engine 4 vs libGDX, the Slant community recommends libGDX for most people. In the question“What are the best 2D game engines?” libGDX is ranked 14th while Unreal Engine 4 is ranked 17th. The most important reason people chose libGDX is:
Lots of references, tutorials and open source code to learn from.
Specs
Ranked in these QuestionsQuestion Ranking
Pros
Pro A visual scripting system for non-coders enables quick prototyping
Blueprints are authoring tools designed for non programmers so designers and other team members can help tweak and prototype. UE4's Blueprint scripts resemble flowcharts where each box represents a function or value, with connections between them representing program flow. This provides a better at-a-glance indication of game logic than a simple list of events, and makes complex behaviors easier to accomplish and games a lot faster to prototype.
Pro Lots of resources to learn from
Epic provides multiple official video tutorials, lots of free example projects and content, an extensive wiki and regular streams showing how to use latest features.
Pro Powerful material/shader system
Allows a texture/material artist or VFX artist to create amazing effects from the ground up.
Pro Free development license, including source code
The engine, including full access to source code, is free to use; a 5% royalty is due only when you monetize your game or other interactive off-the-shelf product and your gross revenues from that product exceed $1,000,000 USD.
Pro Realistic graphics
Pro Developers have full control of the engine and source code
UE4 gives full access to the C++ source code allowing editing and upgrading anything in the system.
Pro Dynamic global illumination with voxel cone tracing decreases the computational power needed
Voxel cone tracing is a similar algorithm to ray tracing, but uses thick rays instead of pixel thin rays to be able vastly decrease the amount of computational power needed.
Pro Easy to use animation blueprints
Unreal Engine 4 is one of the best game engines. It is super easy. It dosent require any use of coding due to Animation Blueprints
Pro Spectacular lighting visuals
Pro Cross-platform editor and export
This engine exports for a big range of platforms including Linux. The editor can be run on Windows, MacOS, and Linux (Early Access).
Pro Active community
Forums have many active and friendly members that are quick to respond and help out. Even staff is very active on forums.
Pro AAA Ready
This is ready to make the next AAA game.
Pro Fast compilation for quick iteration
Recompiling an entire game to test a small change takes up a lot of time. UE4 quickly compiles in seconds instead of minutes improving iteration time by an order of magnitude.
Pro Quick release-cycle
New feature releases can be commonly expected about once a month.
Pro Professional feature set for all aspects of game development
Almost everything a game developer wants has a deep and sophisticated tool waiting for them in UE4. No external plugins are needed to make powerful materials, FX, terrain, cinematics, gameplay logic, AI, animation graphs, post process effects, lighting etc.
Pro Proven track record
Pro No coding experience needed
Pro Lots of resources to learn from
Lots of references, tutorials and open source code to learn from.
Pro Great performance across devices
While it may not always have the best performance for a particular device or system, it's one of the few engines which consistently performs very well across different platforms.
Pro Fantastic UI toolkit (scene2d)
scene2d is a 2D scene graph, scene2d.ui is a UI toolkit on top of that. It enables very complex mobile and desktop UIs.
Pro Can use any JVM language
Since it's built with Java and runs on the JVM, any language that compiles to Java bytecode can be used to develop games with libGDX.
Pro Uses Box2D
A Java port of the Box2D physics engine is included in libGDX.
Pro Allows you to migrate from 2D to 3D within same framework
LibGDX supports both 2D and 3D game development. Allowing developers to migrate from 2D to 3D with ease without having to switch the engine they are using or having to learn a new API.
Pro Doesn't force a specific design
Unlike some engines, which only allow you to make your game in a few specific ways, libGDX allows you to design any type of game you wish as it is extremely customisable.
Pro Active and helpful community
The libGDX community, in the official libGDX forum is extremely helpful and approachable for any kind of question regardless of the its quality or difficulty.
The forums themselves are a very helpful resource for any issue or guide simply by searching past posts in there.
In addition to the forums, there's also the official #libgdx IRC channel on Freenode.
Pro Interfacing with platform specific code
Sometimes it is necessary to access platform specific APIs, e.g., adding advertisement services or leaderboard functionality provided by frameworks.
Pro Free, open source & permissive license
libGDX uses the Apache License 2.0.
Not only is libGDX free and open source but also it's license gives you a lot of power over the engine. As long as you provide a copy of the license, give credit, do not hold devs liable and do not use libGDX logo in any engine forks you can do pretty much anything you want.
Pro Kotlin support
It is written in Java so you can easily make games using Kotlin and Ktx project will help you get all advantages of this language.
Pro Very easy to customize
Pro Constantly improved
LibGDX itself is pretty mature, and get updates not quite frequently, but various libraries for it are actively updated.
Pro Across platform support
You can write once and run anywhere (Android, IOS, Desktop, Browser) also lately came with lib to deal with VR.
Pro Support for 3rd party tools
libGDX has built in support for many 3rd party tools, including (but not limited to) Bullet Physics, Box2DLights and the well-praised Tiled Map Editor.
Pro Lots of tutorials to get you going
Even though the official documentation might be lacking, there are many tutorials on YouTube for libGDX.
Pro Excellent font rendering support
Very good tools for rendering fonts.
Pro Similar to the Microsoft XNA framework
Old XNA users may like libGDX since it's API is actually very similar to XNA's.
Pro Focusing on object pool patterns, to control memory without pointers
Unlike Unity or other engine, it allows to optimize a language that uses garbage collector when using patterns of objects you can control the use of memory without needing a language like C / C ++, getting the same speed in a more productive language.
Cons
Con Very high build size
A blank project will build in to a minimum of 200 MB.
Con Slow
Compared to other engines, UE4 seems to perform various actions considerably slower. Actions like starting the engine, opening the editor, opening a project, rebuilding shaders, updating references, calculating lightmaps, saving projects, etc take long enough to get irritating and end up wasting precious development time.
Con Extremely long build times
Making a full rebuild, including engine can take a good 30minutes. If you plan to use Unreal professionally, you better get some licenses for Incredibuild as well.
Con Hard engine for beginners
This engine not easy for beginners
Con Steep learning curve
Especially when compared to its primary competitor, Unity.
Con No drawcall batching, performance is very bad on mobile
There's no dynamic batching support to minimize drawcalls. There's InstancedStaticmesh concept in UE4, but it's 3d only, functionally limited and requires hardware support which rules out most mobile devices.
Con C++ - oriented development cycle: slow turn-around times
The Unreal Editor is the main place to do stuff (of course), so if someone wants to do a lot of C++ stuff, the compilation and linking turn-around times can be painful. Still they probably are quite fast in comparison to the provided featureset.. Still ,they are far from optimal.
Con Poor documentation
Most of the "documentation" for code is actually just automatically generated from the source. If you're interested in knowing how things are supposed to work, you must either go to their answers site or pay for UDN.
Often their examples won't even compile, since they were written for now outdated versions.
Con Royalty based
5% of profits will go to Unreal after $3000 earned in a quarter.
Con They spend more time adding features than fixing existing ones
Con C# not natively supported
UE4 does not support C# natively, but this can be achieved through MonoUE, although it requires using the MonoUE fork instead of UE itself.
Con Poor source control support
Merge tool is not working.
Con Poor quality assurance on their releases
After each release they almost immediately release a hotfix. And another one. And another one.
Con Unreal Engine crashes a lot if you don't have the required system requirements
Con Sparse Resources for C++
C++ happens to be the main suite for Unreal, yet the documentation is very, very sparse.
Con Extremely poorly designed
The code is a mess.
Everything is connected, a single Actor is 1500 bytes, because it contains a million things that Epic once needed in a game.
Inheritance for AActor: AActor > UObject > UObjectBaseUtility > UObjectBase
Con Difficult for Mac users
If you're installing it on Mac, you simply download Epic games launcher and watch it download nothing endlessly.
Con Tutorials do not go in-depth enough
The blueprint tutorial just teaches how to turn on a light when you press f.
Con Proprietary
Con Not available on Linux
Con No Terrain Editor included
Con Bad support
The epic games team only assists with billing and account issues, not bugs.
Con Terrible physics
Con Frequent crashes
Often the editor crashes interrupting your work.
Con Poor error messages
Con Rarely works
Con Not starter friendly
Even default applications fail to load in Android. It doesn't have any documentation on errors either.
Con Documentation could be better
Other than a brief installation / getting started overview, libGDX's documentation consists of an official wiki with several incomplete pages, and automated Javadocs. The community recognizes these shortcomings, and new users are encouraged to ask for help.
Con The project slowed down in development
The number of active developers has decreased, many open issues and pull requests.
Con Build system is clunky
LibGDX uses Gradle, which is very demanding of memory and makes IDEs freeze on anything if your computer is not powerful enough.
Con Does not create compiled code
LibGDX runs entirely on Java and does not create executable binaries.
Con A bit difficult to use
This engine is not well put together. Is made from various free modules each with their own peculiarities. At times it feels you need to learn a couple of libraries rather than just one. Is not an engine for beginners as it requires coding. Lots of coding. You need to be intermediate to advanced in Java to develop in LibGDX.