Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
If you want relatively accurate data on fuel consumption, you multiply the delta by 60 to get a consumption rate by second, or 360 to get it by the minute.
If you want actually accurate and readable figures with high response rate and no excessive feathering, you average the delta of your fuel tank across 10 ticks and multiply that by 6 for 1s rate.
If you want fuel consumption based on distance travelled, you need to look at your m/s figure and time. You can look at the consumption rate during 100m of travel and extrapolate your range from there.
If you want the most accurate figures, you take the value of the fuel tank into memory, and compare that value to the fuel tank 1 minute later. It's not responsive, but it's easy and accurate.
Averaging a value over time (not only fuel delta but also speed) would imply some logic shenanigans with memory and timer modules I assume ? I've toyed around this a bit before collapsing out of confusion.
I had a main 60s timer to start and stop the whole process, was reading the amount of fuel at start and finish, and was trying to average speed at regular intervals with a sub clock triggering each x ticks to try a get a reasonably accurate figure for the final calculations, but totally failed at that last part.
I guess I could figure it out of my own if I spent enough time on it, but I could certainly use some pointers on how to implement the thing.
You can also do this math by seconds, but it's significantly slower as a result. The lowest clocktime is 0.1/s while ticks are 1/60s.
https://imgur.com/a/C4pB4Db
I used calculated from fuel deltas after each own tick (10 seconds)
https://steamcommunity.com/sharedfiles/filedetails/?id=2042470052
https://steamcommunity.com/sharedfiles/filedetails/?id=2042688612
If i go by lerping the values, it should be around 10.2