mirror of
https://github.com/ChuckBuilds/LEDMatrix.git
synced 2026-04-10 21:03:01 +00:00
NCAA FB season now downloads in full but it slows down the display significantly, data fetch has been moved to the background and deferred during scrolling displays
This commit is contained in:
@@ -555,6 +555,11 @@ class DisplayController:
|
||||
self.display_manager.defer_update(self.stocks.update_stock_data, priority=2)
|
||||
if self.news:
|
||||
self.display_manager.defer_update(self.news.update_news_data, priority=2)
|
||||
# Defer sport manager updates that might do heavy API fetching
|
||||
if hasattr(self, 'ncaa_fb_live') and self.ncaa_fb_live:
|
||||
self.display_manager.defer_update(self.ncaa_fb_live.update, priority=3)
|
||||
if hasattr(self, 'nfl_live') and self.nfl_live:
|
||||
self.display_manager.defer_update(self.nfl_live.update, priority=3)
|
||||
# Continue with non-scrolling-sensitive updates
|
||||
if self.weather: self.weather.get_weather()
|
||||
if self.calendar: self.calendar.update(time.time())
|
||||
|
||||
Reference in New Issue
Block a user