Engine game ticks, unit blueprints and DPS calculation

Talk about general things concerning Forged Alliance Forever.

Moderators: FtXCommando, Ze Dogfather

Engine game ticks, unit blueprints and DPS calculation

Postby ZLO_RD » 09 Oct 2019, 22:45

Before this fell out of my head i decided to write it down somewhere.

Should we adjust values in blueprint so that they comply to what engine can actually reproduce?

For example Pillar blueprint tells us that weapon fire rate is 0.8. That is 0.8 shots per second, but for engine that means that it has to wait 1 / 0.8 = 1.25 seconds between shots... and engine can't do that, apparently it can't make units shoot between game ticks or can only wait for time mesured in integer number of ticks. Game tick is 0.1 sec. So it can wait 1.2 or 1.3, but never 1.25 sec. So pillar shoots every 1.2 seconds, not 1.25. 0.8 value in blueprint in reality turns out to be 0.8333333333333333. and you can even test this in game with shift+F6 and cheats enabled. change pillar fire rate to 0.8333333333333 and unit behavior will not change. actual pillar DPS is not 56 (70*0.8), it is 58.333333 (70*0.8333333).

same goes for tons of other units and reload\delay\recharge\wait-time values.

this may not be usefull if we actually make real universal dps calculating formula that takes in account all of the engine quirks. but if automaticly taking in account engine quirks in calculation will be to hard then we can just make blueprints in a way that helps accurate dps calculation, by avoiding blueprint values that engine can't reproduce.
That eventually should help database to be more accurate.
http://www.youtube.com/user/dimatularus
http://www.twitch.tv/zlo_rd
TA4Life: "At the very least we are not slaves to the UI"
User avatar
ZLO_RD
Supreme Commander
 
Posts: 2265
Joined: 27 Oct 2011, 13:57
Location: Russia, Tula
Has liked: 303 times
Been liked: 400 times
FAF User Name: ZLO

Re: Engine game ticks, unit blueprints and DPS calculation

Postby IceDreamer » 11 Oct 2019, 00:24

I have been doing this for years. Whenever I was already making a change to a unit's weapon behaviours, I would make sure it all calculated through more clearly. Not sure it's worth going through everything, just cos that would be really dull lol

Though... Your calculation is off. 0.5 rounds up in engine, not down. A 100 damage shot with RoF of 0.8 gives a dps of 100/round(1/0.8) = 76.92308 (Damage goes to many decimal places for some reason, can't remember exactly what the cutoff is.
IceDreamer
Supreme Commander
 
Posts: 2607
Joined: 27 Dec 2011, 07:01
Has liked: 138 times
Been liked: 488 times

Re: Engine game ticks, unit blueprints and DPS calculation

Postby Gorton » 11 Oct 2019, 00:56

IceDreamer wrote:I have been doing this for years. Whenever I was already making a change to a unit's weapon behaviours, I would make sure it all calculated through more clearly. Not sure it's worth going through everything, just cos that would be really dull lol

Though... Your calculation is off. 0.5 rounds up in engine, not down. A 100 damage shot with RoF of 0.8 gives a dps of 100/round(1/0.8) = 76.92308 (Damage goes to many decimal places for some reason, can't remember exactly what the cutoff is.


The pillar acts as zlo stated above, the dps is consistant with the pillar shooting every 1.2 seconds

I can't say as to why.
"who is this guy, he didnt play gpg or what?" - RA_ZLO

*FAF Moderator*
Gorton
Councillor - Moderation
 
Posts: 2543
Joined: 16 Apr 2013, 21:57
Location: United Kingdom
Has liked: 1067 times
Been liked: 455 times
FAF User Name: Gorton

Re: Engine game ticks, unit blueprints and DPS calculation

Postby UnorthodoxBox » 12 Oct 2019, 06:13

Nice to finally have a forum post to link when I say t1 pd has 166.667 dps instead of 150
User avatar
UnorthodoxBox
Avatar-of-War
 
Posts: 182
Joined: 01 Sep 2014, 01:51
Has liked: 131 times
Been liked: 54 times
FAF User Name: Box-


Return to General Discussions

Who is online

Users browsing this forum: No registered users and 1 guest