Skip to content

Problems with Viewport #860

Answered by Bodmer
thor171 asked this question in Q&A - General
Dec 12, 2020 · 11 comments · 5 replies
Discussion options

You must be logged in to vote

My board is a TTGO T8 with 4Mb PSRAM. Mine is v1.1, it is not the best board I have as the little on/off switch broke the first day of using and, with Windows 10, I usually need to press the BOOT button for it to program due to the boot timeout being too short.

I updated the sketch to use a viewport in the destination sprite, this is set to the rotated needle bounding box and gives a performance boost to circa 100fps for PSRAM and 200fps for normal RAM. Due to PSRAM caching the speed varies significantly depending on the shape of the area to update, so a timed loop is required to keep the needle draw speed down. Here is my latest version.
myDZM_array3.zip

It has been an interesting distra…

Replies: 11 comments 5 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@thor171
Comment options

Comment options

You must be logged in to vote
1 reply
@thor171
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
1 reply
@thor171
Comment options

Answer selected by Bodmer
Comment options

You must be logged in to vote
1 reply
@thor171
Comment options

Comment options

You must be logged in to vote
1 reply
@thor171
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants