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:
ChuckBuilds
2025-04-11 10:34:26 -05:00
parent 73f836a77a
commit a7a341b479
2 changed files with 14 additions and 20 deletions

View File

@@ -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")