Wrong display of memory consumption in HUD when LAA
Bug #1324847 reported by
BB25187
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Open Rails |
Fix Released
|
Low
|
James Ross |
Bug Description
When LAA is used, and memory consumption exceeds 2Gb, the HUD information is wrong:
- The value dumped becomes negative
- No curve is diplayed in the graph view
The problem is linked to the way this value is retrieved in HUDWindow.cs, which is based on a 32bits signed integer. With this type, one cannot represent a value larger than 2Gb without overflow / wrap around behavior. Changing it into an unsigned integer resolves the issue - one can then represent a memory consumption as large as 4Gb. A wider type could be used to represent even larger values.
Besides this first fix, the range of the graph should be set to 4Gb instead of 2Gb, to be consistent with the LAA option.
description: | updated |
Changed in or: | |
assignee: | nobody → James Ross (twpol) |
milestone: | none → 1.0 |
Changed in or: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
So, I don't want the display to show 4GB when we're not using LAA, and if we want to be pedantic (I'm not sure we do) if you use the LAA version on a 32bit system with 3GB tuning enabled, it should be 3GB. :)