Author Topic: Version updates!  (Read 77575 times)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #105 on: June 19, 2010, 10:50:26 pm »
Uploaded a new version with a slightly more aggressive behaviour of the strip()-method and the option to assign a transformation matrix for the texture on stage 0  to an Object3D. However, the latter doesn't work on my phone (just like environment mapping). The Galaxy seems to have a problem with changing the texture matrix...it works all fine in the emulator though.

Offline Darkflame

  • int
  • **
  • Posts: 55
    • View Profile
Re: Version updates!
« Reply #106 on: June 27, 2010, 04:24:10 pm »
Great work :)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #107 on: July 04, 2010, 09:44:53 pm »
New version with a bugfix for calcMinDistance methods. I've also updated the Javadocs.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #108 on: July 06, 2010, 09:49:50 pm »
New version with less object creation inside of some methods. With this, my newest prototype game doesn't create any noticable garbage in the engine while running the main game.
It's becoming a kind of racing game and looks like this (pre-alpha with placeholder art...more like a test case for now). It runs @ 25fps on my crappy Samsung:
« Last Edit: July 06, 2010, 09:51:26 pm by EgonOlsen »

Offline zammbi

  • float
  • ****
  • Posts: 360
    • View Profile
Re: Version updates!
« Reply #109 on: July 07, 2010, 09:13:57 am »
Quote
It runs @ 25fps on my crappy Samsung:
Nice one. Any demo to test?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #110 on: July 07, 2010, 09:15:29 am »
Not yet...it's just too pre alpha... ;)

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: Version updates!
« Reply #111 on: July 07, 2010, 11:08:15 pm »
With this, my newest prototype game doesn't create any noticable garbage in the engine while running the main game.
can you please give some numbers ?

my game was reporting ~20.000 freed objects per ~5 seconds (4000/sec) on emulator :o i couldnt really find where this much came from.

i've tried some experimental things. for example replaced

Code: [Select]
if (tile.isHighlighted()) {
object3d.setAdditionalColor(JConfig.COLOR_TILE_HIGHLIGHT);
} else {
object3d.clearAdditionalColor();
}

with

Code: [Select]
if (highlighted != tile.isHighlighted()) {
highlighted = tile.isHighlighted();

if (highlighted) {
object3d.setAdditionalColor(JConfig.COLOR_TILE_HIGHLIGHT);
} else {
object3d.clearAdditionalColor();
}
}


this dropped gc to ~30.000 objects per ~15 seconds (2000/sec) ??? so almost cut gc in half.

may it be that such methods accidentally create temporary objects ?

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #112 on: July 07, 2010, 11:15:45 pm »
Opps...clearAdditionalColor() in AE did create a new black color every call. It's fixed now, i've uploaded a new jar.

Currently, i've one gc in around 30-60 secs and that comes mostly from touch events and such. If you are using touch events, this tip is worth a look: http://www.jpct.net/wiki/index.php/Performance_tips_for_Android#Silence_the_touch_events

There are still a lot of methods that aren't optimized for really (if any) low object creation in AE. I only started working on one when i got a problem. So if you do (like with the color stuff), please let me know.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #113 on: July 16, 2010, 11:47:22 pm »
New version uploaded which fixes transparency. Former version always applied full alpha regardless of the setting of setTransparency(). This change may cause the trees in the demo source code become almost invisible...i'll correct that later.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #114 on: July 21, 2010, 10:30:13 pm »
New version with a fix for converting alpha textures to 16bit and some other, minor stuff.

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: Version updates!
« Reply #115 on: July 28, 2010, 11:07:05 pm »
that's weird ??? we are talking about the same plugin for eclipse 3.5, right ?
http://developer.android.com/sdk/eclipse-adt.html

maybe it's only available for linux ?
on ubuntu profile option is available in Eclipse when Nexus One is attached. since zerocool can't see it in windows, i suppose this is a linux (only ?) feature

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #116 on: August 05, 2010, 10:07:18 pm »
New version, which hopefully fixes some transparency issues on N1.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #117 on: August 06, 2010, 11:21:27 pm »
And another version with some micro optimizations, less matrix multiplications and better state management....i hope, that i haven't screwed up anything... ;)

Offline raft

  • quad
  • ******
  • Posts: 1966
    • View Profile
    • http://www.aptalkarga.com
Re: Version updates!
« Reply #118 on: August 06, 2010, 11:32:22 pm »
cool ;D 5-10% increase on my N1. the higher the object count the bigger the increase, because of matrix calculations i suppose.

yes, i saw that in trace view too, so profiling is not all for weak ;)

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 11745
    • View Profile
    • http://www.jpct.net
Re: Version updates!
« Reply #119 on: August 06, 2010, 11:33:33 pm »
Debugging is for the weak, not profiling...you got that wrong... ;)

I've updated the jar again. Please this version too. It reduces GL state changes some more.