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

Change: Default to a 32bpp blitter. #8743

Merged
merged 1 commit into from Feb 26, 2021
Merged

Conversation

michicc
Copy link
Member

@michicc michicc commented Feb 24, 2021

Motivation / Problem

Most video drivers cause an 32bpp blitter to be used. OpenGL video drivers currently do not, as they have efficient 8bpp display.

Apparently, the looks of 32bpp blitters are superior.

Description

Only choose an 8bpp blitter if the support8bpp tells us to. Otherwise, use an 32bpp one.

Limitations

The 8bpp blitter together with the OpenGL backend is slightly faster than 32bpp bliters.

Checklist for review

Some things are not automated, and forgotten often. This list is a reminder for the reviewers.

  • The bug fix is important enough to be backported? (label: 'backport requested')
  • This PR affects the save game format? (label 'savegame upgrade')
  • This PR affects the GS/AI API? (label 'needs review: Script API')
    • ai_changelog.hpp, gs_changelog.hpp need updating.
    • The compatibility wrappers (compat_*.nut) need updating.
  • This PR affects the NewGRF API? (label 'needs review: NewGRF')

@glx22
Copy link
Contributor

glx22 commented Feb 25, 2021

Hmm commit message feels wrong

@2TallTyler
Copy link
Member

2TallTyler commented Feb 25, 2021

For reference (maybe for people in the future looking back), #8735 illustrates one difference between 32bpp and 8bpp blitters, and supports this change.

@michicc
Copy link
Member Author

michicc commented Feb 25, 2021

@glx22 I'm all open for any suggestions.

@glx22
Copy link
Contributor

glx22 commented Feb 25, 2021

I think it should say "never use 8bpp...", unless I misunderstood something.

@michicc
Copy link
Member Author

michicc commented Feb 25, 2021

Oops 😄

@michicc michicc merged commit 3cbbaa6 into OpenTTD:master Feb 26, 2021
@michicc michicc deleted the pr/always_32bpp branch February 26, 2021 18:26
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.

None yet

4 participants