forked from OpenTTD/OpenTTD
-
Notifications
You must be signed in to change notification settings - Fork 1
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
The great journey to port the SSE2+ 32bpp blitters #3
Draft
ticky
wants to merge
65
commits into
develop
Choose a base branch
from
the-great-journey-to-port-blitters
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Owner
ticky
commented
Oct 26, 2020
•
edited
Loading
edited
… around operators.
…add something more than whitespace as description of files that don't have a description.
…r.cpp to reduce binary size and compile time
…encoding and ~15% faster in drawing (depends on architecture)
… in drawing (depends on architecture and compiler)
… distinguished struct instead in the data stream for 8bpp-optimized
…ss destination directly instead. Makes palette animation ~40% faster.
…or blitter and driver names Removes indirect dependency on <string> for 20 files, reduces binary size by 16kB
…s if TTD_[BIG/LITTLE]_ENDIAN is defined
…nt order on LE and BE machines
…ing and encoding so it uses similiar scheme as 8bpp-optimized All zoom levels are stored and a kind of RLE is used. Together with further changes and reducing number of variables, drawing is ~50% faster in average.
… less darker for BM_TRANSPARENT (for 32bpp blitters)
…n 32bpp blitters (GeekToo)
…nd a few comments added too.
…ptive one. And constify it too.
…Screen Keyboard for input fields so someone without a keyboard can enter text too. Patch by Dominik.
…d types (Alberth)
…ile removing yet som more magic numbers and one "false" colour
…st the other way around.
…gical 0xFE number. Exact meaning will need to be found later.
…to make 'true' and 'false' more intuitively useable.
…ove some unneeded '(x == 0) ? 0 : 1' constructs.
…es of sprites: fonts, recolour, mapgen and normal sprites.
…rintf but do return the number of characters written instead of the number of characters that would be written; as size_t is unsigned substraction can cause integer underflows quite quickly.
…er selection and parameters.
…ter:: to spritecache.h
…d Blitter_32bppBase::DrawLine() into Blitter::DrawLine().
…ge recoloured too much
…WSPAPER as it does not belong to the other PALETTE_TO_STRUCT_xxx recolourings.
ticky
force-pushed
the
the-great-journey-to-port-blitters
branch
from
October 28, 2020 04:30
e37cd8c
to
6d31b3d
Compare
…lags from 'color' into their own parameter.
…unneeded & 0xFF. Now use the same method of handling the colour as it would do when drawing a string instead of a character.
…E_COLOUR belongs to TextColour
…ng on a 'Location' button, a town/station/industry list, or some news items.
…width 1 missed drawing the first pixel.
… sub-drivers into the common source file.
…ader -Codechange: Split the sorting code from the sortlist to an appropriate header
…iver" This reverts commit dbe1c42. This doesn't work on macOS 11
TODO changes in blitters directory:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.