Moved route caching to env level and removed print statements

This commit is contained in:
Chanumask
2024-04-28 13:52:39 +02:00
parent 54d4e1ecb5
commit 0bbf0dafdb
4 changed files with 84 additions and 46 deletions

View File

@ -68,10 +68,10 @@ class Renderer:
self.assets = {path.stem: self.load_asset(str(path), factor) for path in assets}
self.fill_bg()
now = time.time()
# now = time.time()
self.font = pygame.font.Font(None, 20)
self.font.set_bold(True)
print('Loading System font with pygame.font.Font took', time.time() - now)
# print('Loading System font with pygame.font.Font took', time.time() - now)
def fill_bg(self):
"""