Tone optimization for Picture ( not with rotation )#3512
Open
MackValentine wants to merge 1 commit intoEasyRPG:masterfrom
Open
Tone optimization for Picture ( not with rotation )#3512MackValentine wants to merge 1 commit intoEasyRPG:masterfrom
MackValentine wants to merge 1 commit intoEasyRPG:masterfrom
Conversation
Member
|
jenkins: ok to test |
Member
|
Here is a benchmark video of the first town of Aëdemphia, to evaluate the improvement of the commit 0ccd806 : Summary :
|
Member
|
The idea sounds reasonable (havnt looked at the code yet) though imo the only good way to verify the correctness is writing unit tests. If you don't know how to approach this you can suggest some test cases (especially of edge cases) here and I implement them myself to verify it: Example (always assuming game has 320x240 window)
|
This file contains hidden or 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
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.
Quickfix for tone effect with bigger Pictures.
Instead of changing the color of the entire bitmap, if the sprite is a Sprite_Picture and the bitmap size is larger than the screen, we will render it in a smaller bitmap that will only contain the rendering displayed on the screen, then draw the resulting bitmap in the final sprite.
Should work with zoom, and wave effect, but not with rotation.
This requires calculating safety_w / safety_h according to the deformation related to rotation.