I'm working on a project with my friend in python with pygame. We try to show FPS in our game but we just fail. The fps counter are always at zero. Here is the code:
#Create Text
def Render_Text(what, color, where):
font = pygame.font.Font('assets/Roboto.ttf', 30)
text = font.render(what, 1, pygame.Color(color))
window.blit(text, where)
#Show FPS
Render_Text(str(int(clock.get_fps())), (255,0,0), (0,0))
print("FPS:", int(clock.get_fps()))