Skip to content
This repository was archived by the owner on May 28, 2025. It is now read-only.
This repository was archived by the owner on May 28, 2025. It is now read-only.

Canabalt - about screen text is blurry  #1594

Closed

Description

@ashvarma

master build: 20161213.2
flavor: x86

I compared it with an image from build 20160923.1 and we've regressed this.
Images attached.

canabalt_aboutscreen_20160923 1drop
canabalt_aboutscreen_20161213 2drop

Activity

  1. changed the title [-]Canabalth - about screen text is blurry [/-] [+]Canabalt - about screen text is blurry [/+] on Dec 20, 2016
  2. ms-jihua commented on Dec 30, 2016

    @ms-jihua
    Contributor

    Looks like we're somehow handling line-wrapping incorrectly, as the blurriness only occurs on certain lines (seems to be independent of line breaks, as "The original..." and "Eric..." both take place after \n\n. The bottom section is entirely individual lines)

    Interesting that the blur is only vertical. Wonder if this means that we've got an incorrectly-calculated offset somewhere...

  3. ms-jihua commented on Dec 30, 2016

    @ms-jihua
    Contributor

    It looks like the issue is that we don't handle floating point offsets well. The line offsets are calculated in Canabalt itself, so they are not incorrect, but they are usually non-integral floats (14.0002, 42.50001).

    Flooring the x- and y-offsets to make them integral gets rid of the blur.
    image

    However, setting x- and y-offsets to their floor() + 0.5 reproduces the blur in both vertical and horizontal directions!
    image

    I'm suspecting that this has to do with us using a bitmap for our render target ( Dustin L. Howett (MSFT) (@DHowett-MSFT) can you comment on this? ), causing this interpolation artifact when our offsets aren't integral. It's particularly noticeable in this case because of the pixelated style of font Canabalt uses.

  4. added a commit that references this issue on Jan 6, 2017
    0c6b8ff
  5. added a commit that references this issue on Feb 1, 2017
    017e4b2
  6. added a commit that references this issue on Feb 1, 2017
    1f0515a
  7. added a commit that references this issue on Feb 17, 2017
    ffe05fa
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions