Compare commits
No commits in common. "1649bb6dc9b6fb4be2d8ac01088dec52dec285a5" and "758ed8c7f4bf1d06b45990e915e8ea870e3633bd" have entirely different histories.
1649bb6dc9
...
758ed8c7f4
Binary file not shown.
Before Width: | Height: | Size: 8.6 KiB After Width: | Height: | Size: 3.6 KiB |
Binary file not shown.
@ -37,7 +37,7 @@ proj_ratio = 16.0 / 9.0
|
|||||||
proj_near_z = 8.0
|
proj_near_z = 8.0
|
||||||
proj_far_z = 3000.0
|
proj_far_z = 3000.0
|
||||||
|
|
||||||
sun_direction = math.vec3_normalize((1.0, 0.0, 0.5))
|
sun_direction = math.vec3_normalize((1.0, 0.0, 1.0))
|
||||||
sun_power = 1.0
|
sun_power = 1.0
|
||||||
|
|
||||||
def main():
|
def main():
|
||||||
@ -162,7 +162,6 @@ def main():
|
|||||||
print("Running... Ctrl+c to quit")
|
print("Running... Ctrl+c to quit")
|
||||||
start_time = time.monotonic()
|
start_time = time.monotonic()
|
||||||
current_time = 0.0
|
current_time = 0.0
|
||||||
frame = 0
|
|
||||||
frame_min = 10000.0
|
frame_min = 10000.0
|
||||||
frame_max = 0.0
|
frame_max = 0.0
|
||||||
frame_avg = 0.0
|
frame_avg = 0.0
|
||||||
@ -171,7 +170,7 @@ def main():
|
|||||||
draw_avg = 0.0
|
draw_avg = 0.0
|
||||||
perf_count = 0
|
perf_count = 0
|
||||||
try:
|
try:
|
||||||
while True:
|
for frame in range(10000):
|
||||||
current_time = time.monotonic() - start_time
|
current_time = time.monotonic() - start_time
|
||||||
frame_begin = time.thread_time()
|
frame_begin = time.thread_time()
|
||||||
|
|
||||||
@ -251,7 +250,6 @@ def main():
|
|||||||
frame_max = max(frame_max, frame_ms)
|
frame_max = max(frame_max, frame_ms)
|
||||||
frame_avg += frame_ms
|
frame_avg += frame_ms
|
||||||
perf_count += 1
|
perf_count += 1
|
||||||
frame += 1
|
|
||||||
|
|
||||||
except KeyboardInterrupt:
|
except KeyboardInterrupt:
|
||||||
pass
|
pass
|
||||||
|
Loading…
Reference in New Issue
Block a user