Java ArrayList vs Libgdx Array

I want to know if special Java uses cross-platform specific code. For example, does it matter that I use Java ArrayList or Libgdx Array ?

+4
source share
1 answer

Using shared collections java, such as ArrayList, will not break your code and will work from a functional point of view. However, as a rule, when developing games you should also consider performance, as wasteful programming will affect your gaming experience. libgdxthey developed their own collections precisely for this reason: to make collections better, performance was reasonable. In general, collections are better libgdxthan standard ones java. Take a look at the docs for more information.

+7
source

Source: https://habr.com/ru/post/1625086/


All Articles