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

Reduce stack usage of LCD_DrawWindowedImageFromFile #585

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

howard0su
Copy link
Contributor

No description provided.

@howard0su
Copy link
Contributor Author

Need test on the real TX to see the performance impact.

@PhracturedBlue
Copy link
Contributor

we could probably get by instead by assigning the width to 2x the tx screen width (1x on 7e since I think we only support 8-bit images there?) and just validate that the width requested will fit (it should because I think the caller has already validated that? but I didn't check to be sure). That may provide the same stack reduction on the 7e without increasing ROM usage. I really wanted to setup the 7e to only support 2bit images (black, white transmparent), but I could never find a format that was well supported on windows and linux that would work, so I stayed with the 8bit images for them.

@howard0su
Copy link
Contributor Author

Tested on devo12 and devo8 and didn’t see noticeable performance difference by community member. Someone can help verify as I don’t have any graphics based Tx.

@howard0su
Copy link
Contributor Author

howard0su commented Jan 14, 2019 via email

@howard0su howard0su force-pushed the lcd_gfx_stack branch 2 times, most recently from d84a505 to 648ada2 Compare January 14, 2019 23:26
@howard0su
Copy link
Contributor Author

@PhracturedBlue can u help validate this on a real Tx to see the perf? The size increase is small now.

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.

2 participants