project-navigation
Personal tools

Author Topic: [2.5_dev_12/12/23] Memory leak in wounds system (battlescape)  (Read 3214 times)

Offline Quizer

  • Squad Leader
  • ****
  • Posts: 130
    • View Profile
[2.5_dev_12/12/23] Memory leak in wounds system (battlescape)
« on: December 26, 2012, 12:01:11 am »
There appears to be some kind of memory leak in the soldier status screen in the battlescape, related to the wounds system. When opening the status screen for a soldier with a wound (red exclamation mark, or blue in case of treated wounds - doesn't matter in this case), it takes longer each time. After opening it 12-20 times or so, it starts taking inordinately long - 15+ seconds easily. The resource loss is persistent over several missions and only goes away when exiting and restarting the application.

By the way, is it just me, or is there no way to tell how many untreated wounds a soldier has? In the old X-Com, you got a numerical fatal wounds counter, didn't you? Also, it would be nice if mousing over the exclamation mark in the status screen during combat told you what kind of wound it is (torso, arm, leg, etc.). I'm pretty sure the position within the green square is consistent for each location, but you'd have to know them in the first place for that to be useful.

Offline DarkRain

  • Project Coder
  • Captain
  • ***
  • Posts: 746
    • View Profile
Re: [2.5_dev_12/12/23] Memory leak in wounds system (battlescape)
« Reply #1 on: December 26, 2012, 04:11:50 am »
The delay in the status windows seems to be an UI bug that we haven't been able to pin yet, it has been reported that using the hotkeys to open said window doesn't cause the delay.
There are tooltips for the wound icons, but a bug (possibly related to the above) prevents them from showing if you don't use the hotkey to open the window, which I've explained in this post

Offline Quizer

  • Squad Leader
  • ****
  • Posts: 130
    • View Profile
Re: [2.5_dev_12/12/23] Memory leak in wounds system (battlescape)
« Reply #2 on: December 26, 2012, 07:26:41 pm »
Damn, that is really, really inconvenient. I'm so used to opening those things with the mouse, retraining myself is going to be a major pain. Hope you can get those kinks worked out.

Offline Wolls

  • Rookie
  • ***
  • Posts: 93
    • View Profile
Re: [2.5_dev_12/12/23] Memory leak in wounds system (battlescape)
« Reply #3 on: December 26, 2012, 10:28:39 pm »
You get multiple wound icons if you have multiple wounds and they change colour when treated.  Its just that usually if you take that amount of damage from an alien weapon you're dead.

Offline Quizer

  • Squad Leader
  • ****
  • Posts: 130
    • View Profile
Re: [2.5_dev_12/12/23] Memory leak in wounds system (battlescape)
« Reply #4 on: December 27, 2012, 01:08:42 am »
Problem is, you can get multiple wounds in the same place, and you can't tell how many there are just by looking at the red icon. Usually after I get shot, it takes two medikit applications to stop the bleeding, but not always. I want to be able to get that information when I need it.

Offline kurja

  • Captain
  • *****
  • Posts: 504
    • View Profile
Re: [2.5_dev_12/12/23] Memory leak in wounds system (battlescape)
« Reply #5 on: December 27, 2012, 07:33:06 am »
Even when the hover over- info is missing, you can tell if the bleeding got stopped after having used a medikit - if bleeding got stopped the wound icon changed color from red to pale blue (or whatever the exact color is). Admittedly it's a nuisance if number (and location!) of wounds can't be seen.

Offline Quizer

  • Squad Leader
  • ****
  • Posts: 130
    • View Profile
Re: [2.5_dev_12/12/23] Memory leak in wounds system (battlescape)
« Reply #6 on: December 27, 2012, 11:17:40 am »
Yeah, I know that. But I want my mouseovers, dammit! >_>

Well, I hope they catch that UI bug. Is that also what makes loading a game take so long? That also takes 10-15 seconds for me, which feels like more than it should be.