Browse Source

AnimationInfo: Reorder to save 8 bytes (32->24)

```
pahole --reorganize --show_reorg_steps --show_only_data_members -C AnimationInfo build/test/liblibdevilutionx_so.so
```
pull/5390/head
Gleb Mazovetskiy 4 years ago
parent
commit
b5d3f3561b
  1. 17
      Source/engine/animationinfo.h

17
Source/engine/animationinfo.h

@ -114,14 +114,6 @@ private:
*/
[[nodiscard]] float getProgressToNextGameTick() const;
/**
* @brief Specifies how many animations-fractions are displayed between two game ticks. this can be > 0, if animations are skipped or < 0 if the same animation is shown in multiple times (delay specified).
*/
float tickModifier_;
/**
* @brief Number of game ticks after the current animation sequence started
*/
float ticksSinceSequenceStarted_;
/**
* @brief Animation Frames that will be adjusted for the skipped Frames/game ticks
*/
@ -130,6 +122,15 @@ private:
* @brief Animation Frames that wasn't shown from previous Animation
*/
int8_t skippedFramesFromPreviousAnimation_;
/**
* @brief Specifies how many animations-fractions are displayed between two game ticks. this can be > 0, if animations are skipped or < 0 if the same animation is shown in multiple times (delay specified).
*/
float tickModifier_;
/**
* @brief Number of game ticks after the current animation sequence started
*/
float ticksSinceSequenceStarted_;
};
} // namespace devilution

Loading…
Cancel
Save