Skip to content
Snippets Groups Projects

Give the GIF recorder some memory so frame delays are a little more accurate

Merged Golden requested to merge Golden/SRB2:gif-dynamic-delay-v2 into next
  • Adds a persistent variable that keeps track of how much delay has been introduced between frames.
    • This variable is microsecond-precise, and gets decreased by 10 milliseconds per 10 milliseconds of measured delay (The minimum delay possible in GIF frames is 10ms).
  • During the process NEWTICRATE was switched out for the function I_GetTimeMicros.
    • This has the side effect of being able to support different TICRATEs and NEWTICRATERATIOs because it just counts the real time that passed between frames instead of relying on an internal framerate.

Before:

srb21789

After:

srb21788

Edited by Golden

Merge request reports

Loading
Loading

Activity

Filter activity
  • Approvals
  • Assignees & reviewers
  • Comments (from bots)
  • Comments (from users)
  • Commits & branches
  • Edits
  • Labels
  • Lock status
  • Mentions
  • Merge request status
  • Tracking
  • Loading
  • Loading
  • Loading
  • Loading
Please register or sign in to reply
Loading