1. Welcome to the Starbound support forums. Please check the support FAQs before posting: http://playstarbound.com/support

Closed DPS rounding error

Discussion in 'Starbound Support' started by 409, Feb 16, 2015.

Thread Status:
Not open for further replies.
  1. 409

    409 Big Damn Hero

    I'm not even sure if this can be fixed in the first place, but I feel like I should show this fairly self-demonstrating thing here anyways.

    Here's two almost identical crossbows with noticeably different DPS, despite them more than likely performing the exact same in actual gameplay.

    crossbow oddity.png
     
  2. Nerva

    Nerva Parsec Taste Tester

    The reason this occurs is, as you said, due to rounding.

    Damage values, fire rates, and energy-per-shot values are stored in the game files with more than ten digits past the decimal. However, the game can only display whole numbers, or in the case of fire rate, up to the hundredths place in decimal. Necessarily, some rounding will occur, and this will cause some displayed DPS values to fluctuate. You can rest assured that, despite the game rounding the displayed numbers, the internal math is correct.

    Though these weapons are pretty similar, the extra .01 fire rate on Hunter's Guardian would be more than sufficient to push it's DPS a few points above its competitor. The difference is less than 5 points of DPS, which isn't much.

    Fire rate has a pretty intense effect on the game's DPS calculations, due to its multiplicative effect on damage.
     
    Last edited: Feb 17, 2015
  3. SleepySquidd

    SleepySquidd Tragically Magic Hands

    As Nerva said it's internal math is correct, this is simply the way the game presents itself due to not showing decimal places.

    Marking as Resolved & Locking.
     
Thread Status:
Not open for further replies.

Share This Page