Replies: 1 comment 1 reply
-
Hi! The framerate-based nature of the renderer actually just limits the repaint frequency in order to reduce load, and repaints only occur when necessary. Message receives in
In other words, there are no repaints when the program is idle, only calls to I'm going to convert this to a discussion (for further discussion). If we find there is a feature here we can convert this back to an issue. |
Beta Was this translation helpful? Give feedback.
-
Is your feature request related to a problem? Please describe.
Currently, bubbletea program redraw at the frame rate by default. This can lead to unnecessary resource consumption in certain scenarios. For applications that primarily display static text or have infrequent UI changes, high-frequency redrawing is unnecessary and increases CPU and GPU load.
Describe the solution you'd like
Disable Automatic Redrawing: Offer an option (e.g., during Program initialization) to disable the default frame rate-based automatic redrawing.
Manual Redraw Triggering: Provide a method or mechanism for developers to manually trigger redrawing when needed. For example, this could be achieved by sending a specific Msg to the Update function or calling a designated method.
Describe alternatives you've considered
Consider providing an additional option that allows developers to choose a "redraw on write" mode. In this mode, any modification to the Model will immediately trigger a redraw. This can reduce the amount of code needed for manual redraw triggering.
Additional context
Beta Was this translation helpful? Give feedback.
All reactions