Virus Effect (2D Platformer RPG Shooter)

I dont know what HPROF is. but you could in the debug mode, draw the amount of time it takes ot do things. jsut take the time at the beginning and the end. and print the difference.

this should tell you what is taking up all of the time.

http://en.wikipedia.org/wiki/Profiler_(computer_science) :slight_smile:

— “I dont know what HPROF is”

That is a very good reason to look into it :slight_smile:

the wiki link doesnt exist.

so does HBROF jsut monitor CPU usage, and other CPU stats?

HPROF can be used for monitoring CPU usage and Memory usage. I have only used to for cpu usage. The basic idea is:

  • You start your programme with the hprof command line option
  • While the programme is executing as normal hprof will check with regular intervals what your programme is doing at that specific point in time and note this down
  • When you terminate your programme hprof dumps a report of what your programme was doing when it checked.
  • hprof checks 1000s of times for a short programme execution

So the more frequently a line of code is executed or the more time is spent on that line and the more frequently will it appear in hprofs output. So the top expensive lines of code in hprofs report is what you will look at for optimization.

So it is not really cpu usage. It just reports what your programme does the most.

Thanks for the link I’ll look into HPROF. I thought it would be caused by Garbage Collection because every once in a while the game freezes up and then unfreezes. It might be that my game’s garbage collection takes longer, so i’ll have to find out what’s causing this.

has lvl 8 come yet? it is taking quite a while. (sry tobe a bug)

hey I have tohought of an awesome idae. a survival match thing.

so basicly youa re ina room iwht obstacles. and then guys come at you, and you see how many you can kill before you die.

the official statement is not to use System.gc() in latest java editions =o

I am guessing you are talking about garbage collection.

I have always had survival mode in mind, its just the current code can only handle initial loading of enemies not timed. But I am now working on invisible wall triggers, so with this I can trigger events like enemies, dialogue, and other crazy stuff.

Yes I’ve heard that its better not to mess with calling garbage collection.

Episode 8 is still in early stages, we only have the first map roughly made. We’re trying to focus on story mode. Hey would anyone buy a rocket launcher for .99 if it was available now? Or some other gun?

there is no rocket launcher in the store.

Heh yeah I know, im just thinking about making a rocket launcher you can buy for 99 cents. I need to start learning how to do the real world buy system.

I ahve only 1 thing to say. make it available for Credx aswell.

or instead of buying items with money, you can buy credx with money.

but hen you can lose the credx when you die.

I haven’t thought of purchasable credx, but yeah there are too many issues to deal with if that is implemented. I’ll hold off on the purchase function for later. I was thinking about having the gun as an expensive credx item, and having it also available as 99 cents weapon. But I’ll worry about that later, ty.

hey it starts now, but only just :confused:

It looks fun and works good, except for pausing.

UGH! I hate it!

It was so frustrating, I just stopped playing.

It might be java 1.6 or whatever if so, that really sucks, how is an update making it function worse considered an update :stuck_out_tongue:

what do you mean the pausing? do you mean the rare 3 second lasting freezes? Those are really rare. or do you meant eh pause function, where you click out of the applet.

Darn, I lost two of my gun by shooting them and then they flew off of through a door. one was fully upgraded :frowning:

Lol, I’ll put a “wall” there so nothing goes through the door and disappears. I’ll make it for all the doors.

I’ll try to fix that random freeze up.

thx, I was kinda annoyed, I liked my flamethrower. and to top it off, I then lost my machine gun :(.

glad to hear the freezing is gunna be fixed.