Game maker studio 2 code list
Lists are designed to handle dynamic data. there is no difference between the two in a general sense of things. In my experience with other programmers and game developers I have found a general rule of thumb is -Snip- As per resources, coding time, etc. โพสต์ดั้งเดิมโดย The Winter Bud:If I may add to the comment about arrays being better in this case or whatever. Along with being easy to read and interpret. It's similar to Vector math in Unity and C+. So we learned to optimize them as best we can. Then we notices that lists, ques, maps, etc. arrays came first when we started to build computers to except language.
Game maker studio 2 code list code#
If you understand how data structures work and why they were built then you could code your own methods to do the same function on arrays with the same overhead as the pre-packaged ones do.ĮDIT: on a side note. Another thing to mention is though data structures already come pre packaged with mehods to examine and extract data from the data structure, you could build methods to work with arrays. They are optimised to handle the data best and should be used if your data is dynamic. If however, the container is dynamic and can grow or shrink during runtime then a list,Īs per resources, coding time, etc. If the length of the container (list, array, etc.) is known before runtime then it is best to use an array. In my experience with other programmers and game developers I have found a general rule of thumb is If I may add to the comment about arrays being better in this case or whatever.