Skip to content

Avoid sub-pixel rendering in sequence display#739

Merged
garrettjstevens merged 1 commit intomainfrom
seq_display_avoid_subpixel
Nov 25, 2025
Merged

Avoid sub-pixel rendering in sequence display#739
garrettjstevens merged 1 commit intomainfrom
seq_display_avoid_subpixel

Conversation

@garrettjstevens
Copy link
Copy Markdown
Contributor

@garrettjstevens garrettjstevens commented Nov 24, 2025

This makes sure all canvas drawing commands in the LinearApolloReferenceSequenceDisplay use integers instead of floating-point numbers. This can help performance (see this tip on MDN), but the motivation was to get rid of some odd artifacts in the rendering. See for example the whitespace between bases of the same color and the irregularity in the border between the base sequence and translation rows in the "before" below.

Before:
image

After:
image

@garrettjstevens garrettjstevens self-assigned this Nov 24, 2025
@garrettjstevens garrettjstevens merged commit 821b5aa into main Nov 25, 2025
7 checks passed
cmdcolin pushed a commit to cmdcolin/Apollo3 that referenced this pull request Mar 16, 2026
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.

1 participant