Skip to content

Commit

Permalink
text: limit width to 4k to avoid performance degradation
Browse files Browse the repository at this point in the history
  • Loading branch information
mahkoh committed Sep 8, 2024
1 parent 3d0de5a commit d12c7d5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/text.rs
Original file line number Diff line number Diff line change
Expand Up @@ -170,6 +170,7 @@ fn render2(
markup: bool,
scale: Option<f64>,
) -> Result<TextTexture, TextError> {
let width = width.min(3840);
let config = Config {
x,
y,
Expand Down

0 comments on commit d12c7d5

Please sign in to comment.