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

Adapt palette distribution to ratio of object sizes on normal cases redefinition #28

Merged
merged 2 commits into from
Apr 25, 2024

Conversation

cubicibo
Copy link
Owner

@cubicibo cubicibo commented Apr 25, 2024

Windows may be of vastly different sizes in an epoch. Furthermore, the buffer slots are not necessarily sized to the windows but to the largest occupied area in a frame. In normal case redefinition data stream sections, the palette is distributed between the two objects, and no ID shall be shared.
On occasions where the two objects differ vastly in surface area, the largest object should have more palette entries than the smaller one.

This MR adds logic to shift the boundary (within reasonable limits) whenever the object areas mismatch is significant.

@cubicibo cubicibo merged commit c0e9a59 into main Apr 25, 2024
@cubicibo cubicibo deleted the MR/adaptpalnc branch April 26, 2024 21:31
This pull request was closed.
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.

1 participant