java - Rectangles Performance -


i'm creating simple 2d platformer game using libgdx , i'm using rectangle class. of these options better?

  1. create 1 huge rectangle
  2. create lot of small rectangles

enter image description here

from memory standpoint, 1 rectangle should more compact several, i'd start one. 1 rectangle avoid trap-on-border problem multiple rectangles pose.


Comments

Popular posts from this blog

c# - ItextSharp font color issue in ver 5.5.4+ -

jquery - Multiple issues with pushstate: history, loading, calling functions -

ios - retrievePeripherals deprecated in IOS7 how to substitude it with retrievePeripheralsWithIdentifiers -