Skip to content

Add cap to backlog entries#492

Open
PringlesGang wants to merge 6 commits into
masterfrom
backlog-entry-cap
Open

Add cap to backlog entries#492
PringlesGang wants to merge 6 commits into
masterfrom
backlog-entry-cap

Conversation

@PringlesGang

@PringlesGang PringlesGang commented Jun 24, 2026

Copy link
Copy Markdown
Member

Stores the backlog entries in a circular buffer and adds a maximum number of entries to the profile. When full, the oldest entry will be overwritten by the new entry.

The maximum is profile-configurable and defaulted to 400, as per the MAGES. engine.

  • Add cap to backlog entries
  • Add Boost::circular_buffer dependency
  • Turn backlog class's scrollbar from a Scrollbar* to simply a Scrollbar
  • Have scrolling down to close the backlog when at the bottom be based on a short timer, so scrolling to the bottom of the backlog does not immediately close it on high FPS

@PringlesGang PringlesGang added this to the 0.9.X Polishing milestone Jun 24, 2026
@PringlesGang PringlesGang self-assigned this Jun 24, 2026
If you have the scrollbar in a random position and then load a save (clearing the backlog), the scrollbar progress would not update until the show animation had finshed, showing the wrong progress during the show animation
@PringlesGang PringlesGang marked this pull request as ready for review June 25, 2026 01:17

@KKhanhH KKhanhH left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of circular buffer of unique_ptrs of backlog entries (of which there is only one type tied to the game, so the polymorphism support isn't needed), could we have a circular buffer of concrete classes instead? for 400 entries I could imagine this might add some performance hit to it. If we wanna avoid code duplication we could maybe do a CRTP type class where backlog entry type is one of the template args

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants