framework/game/gamemanager.py 1 location
|
@@ 268-279 (lines=12) @@
|
265 |
|
|
266 |
|
gl.glBindVertexArray(0) |
267 |
|
|
268 |
|
def do_run(self): |
269 |
|
''' Process a single loop ''' |
270 |
|
self.sysEvents.process() |
271 |
|
self.update() |
272 |
|
self.render() |
273 |
|
self.window.flip() |
274 |
|
self.fpsTimer.tick() |
275 |
|
|
276 |
|
# print(self.audioFile.get_pos()) |
277 |
|
if self.fpsTimer.fpsTime >= 2000: |
278 |
|
self.fpsEstimate = self.fpsTimer.get_fps() |
279 |
|
print("{:.2f} fps".format(self.fpsEstimate)) |
280 |
|
|
281 |
|
def run(self): |
282 |
|
''' Called from launcher doesnt exit until the game is quit ''' |
framework/game/gamemanager3D.py 1 location
|
@@ 357-367 (lines=11) @@
|
354 |
|
gl.glEnable(gl.GL_DEPTH_TEST) |
355 |
|
|
356 |
|
|
357 |
|
def do_run(self): |
358 |
|
''' Process a single loop ''' |
359 |
|
self.sysEvents.process() |
360 |
|
self.update() |
361 |
|
self.render() |
362 |
|
self.window.flip() |
363 |
|
self.fpsTimer.tick() |
364 |
|
|
365 |
|
if self.fpsTimer.fpsTime >= 2000: |
366 |
|
self.fpsEstimate = self.fpsTimer.get_fps() |
367 |
|
print("{:.2f} fps".format(self.fpsEstimate)) |
368 |
|
|
369 |
|
def run(self): |
370 |
|
''' Called from launcher doesnt exit until the game is quit ''' |
framework/game/texfilteringdemo.py 1 location
|
@@ 147-156 (lines=10) @@
|
144 |
|
|
145 |
|
gl.glBindVertexArray(0) |
146 |
|
|
147 |
|
def do_run(self): |
148 |
|
''' Process a single loop ''' |
149 |
|
self.sysEvents.process() |
150 |
|
self.update() |
151 |
|
self.render() |
152 |
|
self.window.flip() |
153 |
|
self.fpsTimer.tick() |
154 |
|
if self.fpsTimer.fpsTime >= 2000: |
155 |
|
self.fpsEstimate = self.fpsTimer.get_fps() |
156 |
|
print ("{:.2f} fps".format(self.fpsEstimate)) |
157 |
|
|
158 |
|
def run(self): |
159 |
|
''' Called from launcher doesnt exit until the game is quit ''' |
framework/game/gametestmanager.py 1 location
|
@@ 101-110 (lines=10) @@
|
98 |
|
'''Commands to run before exit.''' |
99 |
|
self.font.delete() |
100 |
|
|
101 |
|
def do_run(self): |
102 |
|
''' Process a single loop ''' |
103 |
|
self.sysEvents.process() |
104 |
|
self.update() |
105 |
|
self.render() |
106 |
|
self.window.flip() |
107 |
|
self.fpsTimer.tick() |
108 |
|
if self.fpsTimer.fpsTime >= 2000: |
109 |
|
self.fpsEstimate = self.fpsTimer.get_fps() |
110 |
|
print("{:.2f} fps".format(self.fpsEstimate)) |
111 |
|
|
112 |
|
def run(self): |
113 |
|
''' Called from launcher doesnt exit until the game is quit ''' |
framework/game/sgtest.py 1 location
|
@@ 66-75 (lines=10) @@
|
63 |
|
def exit(self): |
64 |
|
pass |
65 |
|
|
66 |
|
def do_run(self): |
67 |
|
''' Process a single loop ''' |
68 |
|
self.sysEvents.process() |
69 |
|
self.update() |
70 |
|
self.render() |
71 |
|
self.window.flip() |
72 |
|
self.fpsTimer.tick() |
73 |
|
if self.fpsTimer.fpsTime >= 2000: |
74 |
|
self.fpsEstimate = self.fpsTimer.get_fps() |
75 |
|
print("{:.2f} fps".format(self.fpsEstimate)) |
76 |
|
|
77 |
|
def run(self): |
78 |
|
''' Called from launcher doesnt exit until the game is quit ''' |