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

lcd: use checksum to determine if line needs to be rendered again #58

Open
deltabeard opened this issue Jul 25, 2022 · 1 comment
Open
Labels
diff: complex A difficult issue; may require significant planning. feat: low-impact A low impact feature; not important but desired. Performance Issues or bugs related to performance improvements & regressions.

Comments

@deltabeard
Copy link
Owner

Before rendering a line on the LCD, use a fast checksum on the tile data for the line to check whether any tiles or sprites have changes for that line. If they have not changed since the last render, then skip rendering that line.

LCD rendering is costly, so not having to render the line again may improve performance. Having to perform a hash on each line may reduce performance however.

@deltabeard deltabeard added diff: complex A difficult issue; may require significant planning. feat: low-impact A low impact feature; not important but desired. Performance Issues or bugs related to performance improvements & regressions. labels Jul 25, 2022
@deltabeard
Copy link
Owner Author

This checksum could be calculated during the sort performed in #52.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
diff: complex A difficult issue; may require significant planning. feat: low-impact A low impact feature; not important but desired. Performance Issues or bugs related to performance improvements & regressions.
Projects
None yet
Development

No branches or pull requests

1 participant