PDA

View Full Version : Couple things...as designed?



JohnTaber
Mar 19th, '03, 10:05 AM
Hi Dan,

Couple observations...comments?

1) Follow this chain of thought...
+ Create a VPP.
+ Start creating a new power that will be under the VPP list. Add an EB for example. Note that the Real Cost is displayed (i.e. not 0).
+ Add the power to the VPP list.
+ Open the power for editing. >> Note that the Real Cost is now displayed as 0 points. It might be nice if the Real Cost showed again (i.e. not 0). When folks are trying to put several powers in a VPP that can run at the same time this might be nice. After the editing is complete the power correctly returns to 0 on the Power list dialog.

2) When deleting a list separator the little UI that appears confirms that the user wants to delete the list. This is a bit confusing as this is just a separator not a list. I know internally the separator are probably treated as lists but clarification might be nice.

3) I'm trying to narrow down a performance problem. I ALMOST got it licked. Here is what I have discovered. Follow this train of thought...
+ Create a detailed character with tons of powers, skills, etc.
+ Save it but leave it open.
+ Create a second new character. The reponse gets slower as stuff is added to the sheet. Makes sense...lots to control.
+ Switch to the first character that was created and close it.
+ Continue to edit the second character. At this point there is only 1 active sheet. The response is still really slow.
+ Save the second character.
+ Close HD.
+ Open HD.
+ The response is MUCH faster! It is like the resources for the first character are not cleared when the sheet is closed. I have started exiting HD between each new character. It seems to really help. (For reference I am on a P3/450 MHz with 256 MB RAM and a speedy 80 GB HD.)

Simon
Mar 19th, '03, 10:20 AM
I'll answer as best I can ;)

1. This is by design. When you're first creating the new Power, it hasn't been assigned to anything yet (it's not part of the VPP). Effectively, there are no changes made to your character until you click the "OK" button and actually create the power/add it to your character. This is why the Real Cost is displayed.

Once you add the Power to the VPP, the Real Cost is changed (by the VPP) to 0. This happens as soon as you click the "OK" button in your example. When you go in and edit that Power, it is now part of your character (and known to be part of the VPP), so the Real Cost is shown appropriately....in this case, as 0.

Just as a note (I'm sure you've noticed): The Real Cost is displayed in the Power description for all slots in a VPP.

2. That's something that I'll be changing as we move forward, but for right now, it falls into the "it ain't broke, so don't fix it" category ;)

3. Sounds like a memory management issue on your system (internal to Java). What's likely happening is that, in creating the large character, you're creating a large amount of "garbage".....old/obsolete objects that Java has ready for memory reclamation. When Java needs to free up memory, it rarely frees up <b>everything</b>....it just clears out a chunk and then continues on. So, once you've filled up that virtual landfill, there's a lot more "churning" as your system clears small amounts of memory to make room for more objects....leaving the majority of the "junk" to just sit there.

As noted, restarting HD (restarting Java) will clear that right up, as the new Java session does not have any of the "residue" that the old one had.

This is one of the issues that I'm looking at as I go through the code in preparation for v2.....there are some things that I can do to manually override the default memory management that Java is doing.....hopefully if I do them at the right point(s), I'll be able to speed things up and eliminate this gradual slowdown that you're experiencing.

JohnTaber
Mar 19th, '03, 10:34 AM
Wonderful response Dan. Thanks for all of the details. :)