mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-05-01 04:53:00 +00:00
Optimize stock news scrolling for better performance: - Use pre-rendered text image for efficient scrolling - Implement cropping and pasting for smoother animation - Remove unnecessary display operations and delays
This commit is contained in:
@@ -46,9 +46,6 @@ def main():
|
||||
if current_time - last_update >= 0.001: # 1ms minimum between updates
|
||||
news_manager.display_news()
|
||||
last_update = current_time
|
||||
else:
|
||||
# Small sleep to prevent CPU hogging
|
||||
time.sleep(0.0001)
|
||||
|
||||
except KeyboardInterrupt:
|
||||
print("\nTest interrupted by user")
|
||||
|
||||
Reference in New Issue
Block a user