Author Topic: The question about setTexture  (Read 5671 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: The question about setTexture
« Reply #15 on: December 16, 2014, 05:19:07 pm »
It's the VMs garbage collection. You can't avoid it, it's a basic concept of a Java VM. You can reduce it though by reducing the number of object creations at runtime. What causes these object creations highly depend on your app. jPCT-AE itself is very conservative when it comes to object creation. If you are methods that return a Matrix or a SimpleVector, consider to use the variants that take a "toFill" object instead. More info here: http://www.jpct.net/wiki/index.php/Performance_tips_for_Android#Avoid_object_creations

Offline gamenewer

  • long
  • ***
  • Posts: 171
    • View Profile
Re: The question about setTexture
« Reply #16 on: December 17, 2014, 01:29:28 am »
Oh , thanks very much ! :)