eaglelandsonce commited on
Commit
cd35900
1 Parent(s): 50cb32e

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +0 -21
app.py CHANGED
@@ -89,27 +89,6 @@ def draw_grid(data):
89
  return fig
90
 
91
 
92
- # Game Loop ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
93
-
94
- # Desired FPS
95
- fps = 1
96
- # How long each loop iteration should take (in seconds)
97
- time_per_iteration = 1.0 / fps
98
-
99
- while True:
100
- start_time = time.time()
101
-
102
- # Your game logic here
103
- print("Updating game loop")
104
-
105
- # Calculate how long the iteration took
106
- elapsed_time = time.time() - start_time
107
- # Calculate how much time to sleep to maintain the desired FPS
108
- time_to_sleep = time_per_iteration - elapsed_time
109
-
110
- # If the iteration took less time than we have per iteration, sleep
111
- if time_to_sleep > 0:
112
- time.sleep(time_to_sleep)
113
 
114
  # Streamlit application starts here
115
  def main():
 
89
  return fig
90
 
91
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
92
 
93
  # Streamlit application starts here
94
  def main():