Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Optimize scrolling text by trimming on both sides #584

Merged
merged 3 commits into from
Mar 5, 2025

Conversation

WardBrian
Copy link
Member

We were already doing this to the left, but it's useful if we also do it on the right both to minimize what we're trying to draw but also to allow different scrolling texts to appear on the same horizontal line as each other.

After this PR, a scrolling text element only needs one character's width of empty space on either side of it. Here's a modified version of the homepage where I made these 'dead' zones visible:

image preview

Compare this to the current behavior:

old behavior

I think this makes something like #547 much easier in the different possible layout options because it matters much less what order things will be drawn

@WardBrian WardBrian added enhancement New feature or request low priority No rush labels Mar 2, 2025
@WardBrian WardBrian merged commit 64903fb into MLB-LED-Scoreboard:dev Mar 5, 2025
6 checks passed
@WardBrian WardBrian deleted the optimize-scroll branch March 5, 2025 19:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority No rush
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants