MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/Python/comments/eq30cd/i_made_metaballs_works_quite_fast/feo7k5h/?context=3
r/Python • u/Norn9 • Jan 17 '20
64 comments sorted by
View all comments
33
What is the purpose of line 124?
fps = fps * 0.97 + 1000.0 / max(dt, 1) * 0.03
If you wanted the fps you could just use clock.get_fps().
clock.get_fps()
37 u/Norn9 Jan 17 '20 Oh, I did not know that. That line calculates something like average fps.
37
Oh, I did not know that. That line calculates something like average fps.
33
u/[deleted] Jan 17 '20
What is the purpose of line 124?
If you wanted the fps you could just use
clock.get_fps().