[GH-ISSUE #265] Most efficient method for rapid updates. #205

Closed
opened 2026-03-04 01:02:59 +03:00 by kerem · 0 comments
Owner

Originally created by @ross2084 on GitHub (Apr 12, 2019).
Original GitHub issue: https://github.com/rivo/tview/issues/265

Firstly, thanks for a great library! It has been amazingly useful.

I would like to display a counter variable of packets received from a CAN interface. Although it is not critical that the display be updated with every single increment of my counter variable, I do prefer it update several times per second. Can this be done efficiently?

As a POC I made a simple tview.Box with a drawFunc but this seems quite CPU intensive. Is there a better way to accomplish this, perhaps a TextView or some other means where refreshing can be done more efficiently?

Ultimately if I have to refresh on a longer interval, well them's the breaks, I suppose. Thank you again!

Originally created by @ross2084 on GitHub (Apr 12, 2019). Original GitHub issue: https://github.com/rivo/tview/issues/265 Firstly, thanks for a great library! It has been amazingly useful. I would like to display a counter variable of packets received from a CAN interface. Although it is not critical that the display be updated with every single increment of my counter variable, I do prefer it update several times per second. Can this be done efficiently? As a POC I made a simple tview.Box with a drawFunc but this seems quite CPU intensive. Is there a better way to accomplish this, perhaps a TextView or some other means where refreshing can be done more efficiently? Ultimately if I have to refresh on a longer interval, well them's the breaks, I suppose. Thank you again!
kerem closed this issue 2026-03-04 01:02:59 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/tview#205
No description provided.