We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 00647ad commit 76ac85bCopy full SHA for 76ac85b
1 file changed
dev/benchmark.py
@@ -9,6 +9,8 @@
9
WIDTH = 80 # must be divisible by 16
10
HEIGHT = 48
11
12
+RENDERER = 'OpenGL'
13
+
14
log = None
15
16
def print_result(string):
@@ -96,10 +98,10 @@ def run_benchmark():
96
98
log = open('results.log', 'a')
97
99
print('', file=log)
100
print_result('Benchmark run on %s' % time.ctime())
- renderer='OpenGL'
101
+ print_result('%i characters/frame' % (WIDTH * HEIGHT))
102
- console = tdl.init(WIDTH, HEIGHT, renderer=renderer)
- print_result('Opened console in %s mode' % renderer)
103
+ console = tdl.init(WIDTH, HEIGHT, renderer=RENDERER)
104
+ print_result('Opened console in %s mode' % RENDERER)
105
Benchmark_DrawChar_DefaultColor().run(console)
106
Benchmark_DrawChar_NoColor().run(console)
107
Benchmark_DrawStr16_DefaultColor().run(console)
0 commit comments