final gear ratio is part of the speed calculation, higher final gear ratio will increase torque but decrease top speed. you can see the code that calculates top speeds in UFGearTransmission::refreshParameters. replace limit rpm with current rpm and you get the current speed.