Skip to content

GUI window slide-in animation speed changes with framerate #2832

Description

@bobtista

Prerequisites

  • I have searched for similar issues and confirmed this is not a duplicate

Game Version

  • Command & Conquer Generals
  • Command & Conquer Generals: Zero Hour
  • Other (please specify below)

Bug Description

The GUI "window move" slide animations advance by a fixed step every render frame instead of being tied to elapsed time, so the slide-in/out speed scales with the render frame rate. eg the diplomacy/communicator window, moves roughly twice as fast at 60 FPS as at 30 FPS, and are near-instant at very high frame rates.

This is the same kind of issue as the transition and world animation timing decoupled in #2056.

Reproduction Steps

Start a skirmish with window animations enabled (note you can't use -quickstart - this took me a while to figure out, and there's an existing issue for it), watch the control bar slide up as the game starts, or open the diplomacy/communication window. Then raise the render FPS and do it again - the animations play noticeably faster.

Additional Context

Metadata

Metadata

Assignees

No one assigned

    Labels

    GUIFor graphical user interfaceGenRelates to GeneralsMajorSeverity: Minor < Major < Critical < BlockerZHRelates to Zero Hour

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions